minor update

This commit is contained in:
2025-08-25 13:12:36 +05:30
parent ffe2c93ae2
commit c3b5ec78fc
9 changed files with 127 additions and 21 deletions
@@ -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),
),
]