Enforce uniqueness of EventMetaProperty names in DB (Z#23231419) (#6106)

After enforcing this on application level in commit 4c37351, we can now also add
a unique constraint on DB level and a migration to fix any left over non-unique entries.

---------

Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
luelista
2026-07-16 15:44:58 +02:00
committed by GitHub
co-authored by Raphael Michel
parent bf066909a7
commit 52a4381277
3 changed files with 109 additions and 0 deletions
+1
View File
@@ -1851,6 +1851,7 @@ class EventMetaProperty(LoggedModel):
class Meta:
ordering = ("position", "name",)
unique_together = ('organizer', 'name')
@property
def choice_keys(self):