-
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.
# Quelques améliorations côté backend Corrections et améliorations de petits soucis rencontrés ça et là. **A relire commit par commit.** - **admin: l'app user apparait en tant que UTILISATEURS** - **structure: ajout de la relation inverse `putative_members`** - **fix: le service peut être vide si un service D·I est fourni pour l'orientation** - **admin: possibilité d'effectuer des recherches sur la partie orientation** ...
- Loading branch information
Showing
7 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
dora/orientations/migrations/0010_orientation_check_valid_service.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,29 @@ | ||
# Generated by Django 4.2.12 on 2024-07-15 16:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("orientations", "0009_orientation_query_expires_at_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name="orientation", | ||
constraint=models.CheckConstraint( | ||
check=models.Q( | ||
models.Q( | ||
("service", None), | ||
models.Q(("di_service_id", ""), _negated=True), | ||
), | ||
models.Q( | ||
models.Q(("service", None), _negated=True), | ||
("di_service_id", ""), | ||
), | ||
_connector="OR", | ||
), | ||
name="check_valid_service", | ||
), | ||
), | ||
] |
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
23 changes: 23 additions & 0 deletions
23
dora/structures/migrations/0071_structure_putative_members.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,23 @@ | ||
# Generated by Django 4.2.12 on 2024-07-15 13:45 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("structures", "0070_alter_structure_phone"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="structure", | ||
name="putative_members", | ||
field=models.ManyToManyField( | ||
related_name="putative_structure_set", | ||
through="structures.StructurePutativeMember", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class UsersConfig(AppConfig): | ||
name = "dora.users" | ||
verbose_name = "utilisateurs" |