minor update
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.5 on 2025-08-25 07:20
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0005_department_users'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='department',
|
||||
name='users',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='department',
|
||||
name='admin',
|
||||
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='admin_of_department', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.2.5 on 2025-08-25 07:24
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_remove_department_users_department_admin'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='department',
|
||||
name='users',
|
||||
field=models.ManyToManyField(blank=True, related_name='departments', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user