This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'une relation inverse vers le propriétaire pour les notifications
Utile d'une manière générale, obligatoire pour certaines notifications à venir
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
dora/notifications/migrations/0003_alter_notification_owner_structure_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 14:27 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("structures", "0063_structure_is_obsolete"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("notifications", "0002_remove_notification_check_structure_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="owner_structure", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="notifications", | ||
to="structures.structure", | ||
verbose_name="Structure propriétaire", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="owner_structureputativemember", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="notifications", | ||
to="structures.structureputativemember", | ||
verbose_name="Invitation propriétaire", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="owner_user", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="notifications", | ||
to=settings.AUTH_USER_MODEL, | ||
verbose_name="Utilisateur propriétaire", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="task_type", | ||
field=models.CharField( | ||
choices=[ | ||
("orphan_structures", "Orphan Structures"), | ||
("service_activation", "Service Activation"), | ||
("invited_users", "Invited Users"), | ||
("self_invited_users", "Self Invited Users"), | ||
("generic_task", "Generic Task"), | ||
], | ||
verbose_name="Type de tâche", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters