mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-22 18:29:34 +00:00
add tests
This commit is contained in:
1 parent
00fb8a719f
commit
f3e78f229a
9 files changed
+356
-61
No files matched your search
@@ -50,4 +50,13 @@ class Migration(migrations.Migration):
|
||||
default=1, verbose_name="max choice"
|
||||
),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name="role",
|
||||
constraint=models.UniqueConstraint(
|
||||
fields=("title", "election"),
|
||||
name="title_election_unique_constraint",
|
||||
violation_error_code="invalid",
|
||||
violation_error_message="This role already exists for this election",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user