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 .models import Helper
from phonenumber_field.formfields import PhoneNumberField from phonenumber_field.formfields import PhoneNumberField
def text_input(type=None): def text_input(type=None):
attrs = {"class": "input"} attrs = {"class": "input"}
if type != None: if type != None:

View File

@ -7,13 +7,19 @@ import phonenumber_field.modelfields
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('app', '0006_shift_deleted'), ("app", "0006_shift_deleted"),
] ]
operations = [ operations = [
migrations.AlterField( migrations.AlterField(
model_name='helper', model_name="helper",
name='phone', name="phone",
field=phonenumber_field.modelfields.PhoneNumberField(editable=False, max_length=128, primary_key=True, region=None, serialize=False), 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 django.db.models import F, Count, Q, ExpressionWrapper
from phonenumber_field.modelfields import PhoneNumberField from phonenumber_field.modelfields import PhoneNumberField
class Room(models.Model): class Room(models.Model):
name = models.CharField(max_length=200, primary_key=True) name = models.CharField(max_length=200, primary_key=True)
required_helpers = models.IntegerField() required_helpers = models.IntegerField()