mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
Refactor User model: update mobile field to allow null values, enforce unique id_card, and implement user filtering API endpoint
This commit is contained in:
24
api/migrations/0011_alter_user_email.py
Normal file
24
api/migrations/0011_alter_user_email.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.1.2 on 2025-03-24 13:19
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0010_alter_user_mobile"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="email",
|
||||
field=models.EmailField(
|
||||
blank=True,
|
||||
default=datetime.datetime(2025, 3, 24, 13, 19, 18, 477594),
|
||||
max_length=254,
|
||||
verbose_name="email address",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user