Add begin/end date to activities
This commit is contained in:
parent
35e8585f4c
commit
350b0c58be
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ class Activity(ActivityTemplate):
|
||||||
blank=True,
|
blank=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
beginning = models.DateTimeField(_("heure de début"))
|
||||||
|
end = models.DateTimeField(_("heure de fin"))
|
||||||
|
|
||||||
def get_herited(self, attrname):
|
def get_herited(self, attrname):
|
||||||
attr = super(Activity, self).__getattribute__(attrname)
|
attr = super(Activity, self).__getattribute__(attrname)
|
||||||
if attrname in {"parent", "staff", "equipment"}:
|
if attrname in {"parent", "staff", "equipment"}:
|
||||||
|
|
Loading…
Reference in a new issue