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
|
@register.simple_tag
|
||||||
def getWorkDayHistory(workday):
|
def getWorkDayHistory(workday):
|
||||||
workday = Workday.objects.get(pk=workday.pk)
|
workday = Workday.objects.get(pk=workday.pk)
|
||||||
|
|
||||||
|
if len(workday.history.all()) > 1:
|
||||||
return workday.history.first()
|
return workday.history.first()
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
|
#return workday.history.first()
|
||||||
|
|
||||||
# Last Absence
|
# Last Absence
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue