2
0
Fork 0

i see a red commit and i want it painted black

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-04-27 15:24:22 +02:00
parent 145f9c8187
commit 8cd466157d
4 changed files with 13 additions and 5 deletions

View File

@ -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:

View File

@ -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,
),
),
]

View File

@ -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()

View File

@ -164,4 +164,4 @@ if getenv("SENTRY_DSN"):
traces_sample_rate=0,
)
PHONENUMBER_DEFAULT_REGION = "DE"
PHONENUMBER_DEFAULT_REGION = "DE"