mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-20 16:09:54 +00:00
Make ClubRole.name translatable
This commit is contained in:
1 parent
aab5cc178e
commit
884940af30
8 files changed
+167
-23
No files matched your search
+6
-1
@@ -307,7 +307,12 @@ class ClubRole(OrderedModel):
|
||||
violation_error_message=_(
|
||||
"A role cannot be in the presidency while not being in the board"
|
||||
),
|
||||
)
|
||||
),
|
||||
models.UniqueConstraint(
|
||||
fields=("club", "name"),
|
||||
name="clubrole_club_name_unique",
|
||||
violation_error_message=_("There is already a role with that name"),
|
||||
),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in new issue
Block a user