diff --git a/shiftregister/app/forms.py b/shiftregister/app/forms.py index 5134d6c..be3e18a 100644 --- a/shiftregister/app/forms.py +++ b/shiftregister/app/forms.py @@ -2,6 +2,7 @@ from django import forms from .models import Helper from phonenumber_field.formfields import PhoneNumberField + def text_input(type=None): attrs = {"class": "input"} if type != None: diff --git a/shiftregister/app/migrations/0007_alter_helper_phone.py b/shiftregister/app/migrations/0007_alter_helper_phone.py index 260fe3c..48eb5d2 100644 --- a/shiftregister/app/migrations/0007_alter_helper_phone.py +++ b/shiftregister/app/migrations/0007_alter_helper_phone.py @@ -7,13 +7,19 @@ import phonenumber_field.modelfields class Migration(migrations.Migration): dependencies = [ - ('app', '0006_shift_deleted'), + ("app", "0006_shift_deleted"), ] operations = [ migrations.AlterField( - model_name='helper', - name='phone', - field=phonenumber_field.modelfields.PhoneNumberField(editable=False, max_length=128, primary_key=True, region=None, serialize=False), + model_name="helper", + name="phone", + field=phonenumber_field.modelfields.PhoneNumberField( + editable=False, + max_length=128, + primary_key=True, + region=None, + serialize=False, + ), ), ] diff --git a/shiftregister/app/models.py b/shiftregister/app/models.py index b479bc9..0b70ba5 100644 --- a/shiftregister/app/models.py +++ b/shiftregister/app/models.py @@ -6,6 +6,7 @@ from django.utils import timezone from django.db.models import F, Count, Q, ExpressionWrapper from phonenumber_field.modelfields import PhoneNumberField + class Room(models.Model): name = models.CharField(max_length=200, primary_key=True) required_helpers = models.IntegerField() diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 84773c4..958458d 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -164,4 +164,4 @@ if getenv("SENTRY_DSN"): traces_sample_rate=0, ) -PHONENUMBER_DEFAULT_REGION = "DE" \ No newline at end of file +PHONENUMBER_DEFAULT_REGION = "DE"