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:
17
api/migrations/0012_alter_user_id_card.py
Normal file
17
api/migrations/0012_alter_user_id_card.py
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated by Django 5.1.2 on 2025-03-26 17:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0011_alter_user_email"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="id_card",
|
||||
field=models.CharField(blank=True, max_length=255, unique=True),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user