1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

Tuple (name, date_start, date_end) must be unique for activities

This commit is contained in:
Yohann D'ANELLO 2020-08-17 19:28:26 +02:00
parent 61ace4af74
commit e974eaa1fe

View File

@ -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):