Farbliche Veränderung erst ab zwei Änderungen
This commit is contained in:
parent
0980a4bddf
commit
ca80f69af2
Binary file not shown.
|
|
@ -73,7 +73,13 @@ def getmesscounter(user):
|
|||
@register.simple_tag
|
||||
def getWorkDayHistory(workday):
|
||||
workday = Workday.objects.get(pk=workday.pk)
|
||||
return workday.history.first()
|
||||
|
||||
if len(workday.history.all()) > 1:
|
||||
return workday.history.first()
|
||||
else:
|
||||
return None
|
||||
|
||||
#return workday.history.first()
|
||||
|
||||
# Last Absence
|
||||
@register.simple_tag
|
||||
|
|
|
|||
Loading…
Reference in New Issue