From 350b0c58be1e5c445a1e96a7ed0626e1defad0db Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 15 Jul 2017 17:46:13 +0200 Subject: [PATCH] Add begin/end date to activities --- event/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/event/models.py b/event/models.py index 6210c81..a40ba6d 100644 --- a/event/models.py +++ b/event/models.py @@ -156,6 +156,9 @@ class Activity(ActivityTemplate): blank=True, ) + beginning = models.DateTimeField(_("heure de début")) + end = models.DateTimeField(_("heure de fin")) + def get_herited(self, attrname): attr = super(Activity, self).__getattribute__(attrname) if attrname in {"parent", "staff", "equipment"}: