mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 22:03:59 +00:00
Add is_admin field to User model and update related serializers and views
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m37s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m37s
This commit is contained in:
17
api/migrations/0016_user_is_admin.py
Normal file
17
api/migrations/0016_user_is_admin.py
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated by Django 5.2 on 2025-06-09 06:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0015_user_created_at_user_updated_at_temporaryuser"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
name="is_admin",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user