mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Tuple (name, date_start, date_end) must be unique for activities
This commit is contained in:
parent
61ace4af74
commit
e974eaa1fe
@ -138,6 +138,7 @@ class Activity(models.Model):
|
||||
class Meta:
|
||||
verbose_name = _("activity")
|
||||
verbose_name_plural = _("activities")
|
||||
unique_together = ("name", "date_start", "date_end",)
|
||||
|
||||
|
||||
class Entry(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user