-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first draft of email and phone number backend
- Loading branch information
magsyg
committed
Sep 14, 2023
1 parent
524fc83
commit f7bb910
Showing
5 changed files
with
424 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
backend/samfundet/migrations/0037_user_phone_number_alter_user_email.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.3 on 2023-09-14 16:35 | ||
|
||
from django.db import migrations, models | ||
import samfundet.models.utils.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('samfundet', '0036_venue_slug'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='user', | ||
name='phone_number', | ||
field=samfundet.models.utils.fields.PhoneNumberField(default=59696969, max_length=15, verbose_name='phone_number'), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name='user', | ||
name='email', | ||
field=models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, max_length=254, unique=True, verbose_name='email'), | ||
), | ||
] |
Oops, something went wrong.