mirror of https://gitlab.crans.org/bde/nk20
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:
|
class Meta:
|
||||||
verbose_name = _("activity")
|
verbose_name = _("activity")
|
||||||
verbose_name_plural = _("activities")
|
verbose_name_plural = _("activities")
|
||||||
|
unique_together = ("name", "date_start", "date_end",)
|
||||||
|
|
||||||
|
|
||||||
class Entry(models.Model):
|
class Entry(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue