Add begin/end date to activities

This commit is contained in:
Ludovic Stephan 2017-07-15 17:46:13 +02:00
parent 35e8585f4c
commit 350b0c58be

View file

@ -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"}: