diff --git a/src/agenda_culturel/templatetags/event_extra.py b/src/agenda_culturel/templatetags/event_extra.py index 66cb0d9..c28eff8 100644 --- a/src/agenda_culturel/templatetags/event_extra.py +++ b/src/agenda_culturel/templatetags/event_extra.py @@ -1,6 +1,7 @@ from django import template from django.utils.safestring import mark_safe from django.urls import reverse_lazy +from django.template.defaultfilters import pluralize from agenda_culturel.models import Event @@ -43,7 +44,6 @@ def show_badges_events(): # TODO: seulement ceux dans le futur ? nb_drafts = nb_draft_events() if nb_drafts != 0: - return mark_safe('' + str(nb_drafts) + '') - + return mark_safe('' + str(nb_drafts) + '') else: return "" \ No newline at end of file