Skip to content

Commit

Permalink
feat(dev): phone is required (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Jul 21, 2023
1 parent 814188a commit c060072
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions acesta/user/migrations/0020_alter_user_phone.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.16 on 2023-07-21 12:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('user', '0019_user_note'),
]

operations = [
migrations.AlterField(
model_name='user',
name='phone',
field=models.CharField(blank=True, max_length=12, null=True, verbose_name='Телефон'),
),
]
3 changes: 3 additions & 0 deletions acesta/user/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class User(AbstractUser):
phone = models.CharField(
"Телефон",
max_length=12,
# TODO
blank=True,
null=True,
)
company = models.CharField(
"Компания",
Expand Down

0 comments on commit c060072

Please sign in to comment.