Skip to content
Snippets Groups Projects
Commit 44b81e3d authored by magicfelix's avatar magicfelix
Browse files

Migrate old migrations to django-localflavor

parent c79a73f6
No related branches found
No related tags found
1 merge request!44Migrate old migrations to django-localflavor
Pipeline #134712 failed
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import django.contrib.sites.managers import django.contrib.sites.managers
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import django_iban.fields import localflavor.generic.models
class Migration(migrations.Migration): class Migration(migrations.Migration):
...@@ -85,7 +85,7 @@ class Migration(migrations.Migration): ...@@ -85,7 +85,7 @@ class Migration(migrations.Migration):
('channel', models.CharField(blank=True, default='', max_length=255, verbose_name='Channel')), ('channel', models.CharField(blank=True, default='', max_length=255, verbose_name='Channel')),
('donation', models.PositiveIntegerField(blank=True, null=True, verbose_name='Donation')), ('donation', models.PositiveIntegerField(blank=True, null=True, verbose_name='Donation')),
('accept_sepa', models.BooleanField(verbose_name='SEPA direct debit')), ('accept_sepa', models.BooleanField(verbose_name='SEPA direct debit')),
('iban', django_iban.fields.IBANField(enforce_database_constraint=True, max_length=34, null=True, verbose_name='IBAN (for SEPA direct debit)')), ('iban', localflavor.generic.models.IBANField(max_length=34, null=True, verbose_name='IBAN (for SEPA direct debit)')),
('accept_terms', models.BooleanField(verbose_name='Delcaration of consent by parents')), ('accept_terms', models.BooleanField(verbose_name='Delcaration of consent by parents')),
('accept_data', models.BooleanField(verbose_name='Declaration of consent data protection')), ('accept_data', models.BooleanField(verbose_name='Declaration of consent data protection')),
('accept_general_terms', models.BooleanField(verbose_name='Declatation of consent terms and condition')), ('accept_general_terms', models.BooleanField(verbose_name='Declatation of consent terms and condition')),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import ckeditor.fields import ckeditor.fields
from django.db import migrations from django.db import migrations
import django_iban.fields import localflavor.generic.models
class Migration(migrations.Migration): class Migration(migrations.Migration):
...@@ -25,6 +25,6 @@ class Migration(migrations.Migration): ...@@ -25,6 +25,6 @@ class Migration(migrations.Migration):
migrations.AlterField( migrations.AlterField(
model_name='eventregistration', model_name='eventregistration',
name='iban', name='iban',
field=django_iban.fields.IBANField(blank=True, enforce_database_constraint=True, max_length=34, null=True, verbose_name='IBAN (for SEPA direct debit)'), field=localflavor.generic.models.IBANField(blank=True, max_length=34, null=True, verbose_name='IBAN (for SEPA direct debit)'),
), ),
] ]
...@@ -26,7 +26,7 @@ secondary = true ...@@ -26,7 +26,7 @@ secondary = true
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.9" python = "^3.9"
aleksis-core = "^3.0b0" aleksis-core = "^3.0b0"
django-iban-field = "^0.8" django-localflavor = "^3.0"
django-formtools = "2.3" django-formtools = "2.3"
django-starfield = "^1.0" django-starfield = "^1.0"
aleksis-app-postbuero = { version = "2.0.1.dev0" , allow-prereleases = true } aleksis-app-postbuero = { version = "2.0.1.dev0" , allow-prereleases = true }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment