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:
2025-03-26 22:49:11 +05:00
parent aa69977d63
commit ddfbeba2f4
7 changed files with 102 additions and 5 deletions

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