Skip to content
Snippets Groups Projects
Verified Commit 047ae4fc authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add count_label for absence reason

parent 9cf6b841
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,10 @@ class AbsenceReason(ExtensibleModel):
except cls.ObjectDoesNotExist:
return cls.objects.create(default=True, short_name="u", name=_("Unexcused"))
@property
def count_label(self):
return f"reason_{self.id}_count"
class Meta:
verbose_name = _("Absence reason")
verbose_name_plural = _("Absence reasons")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment