diff --git a/hypha/apply/funds/models/reminders.py b/hypha/apply/funds/models/reminders.py index 919699d00e7b71c496dd0cc49c385be5a8697988..1015a965c1940a3da7c76a9830a501c5eb2fa7e2 100644 --- a/hypha/apply/funds/models/reminders.py +++ b/hypha/apply/funds/models/reminders.py @@ -49,10 +49,6 @@ class Reminder(models.Model): def is_expired(self): return timezone.now() > self.time - @property - def time_with_format(self): - return self.time.strftime('%Y-%m-%d %I:%M %p') - @property def action_message(self): return self.ACTION_MESSAGE[f'{self.action}-{self.medium}'] diff --git a/hypha/apply/funds/templates/funds/includes/reminders_block.html b/hypha/apply/funds/templates/funds/includes/reminders_block.html index fdf1f528bf7bf128c87bc6fb1dfb4c9eacd28984..2cb7144206ea96467671c76a763b99aacd9c46e3 100644 --- a/hypha/apply/funds/templates/funds/includes/reminders_block.html +++ b/hypha/apply/funds/templates/funds/includes/reminders_block.html @@ -3,11 +3,11 @@ {% regroup object.reminders.all by get_action_display as action_list %} <ul> {% for action in action_list %} - <li><strong>{{action.grouper}}</strong> + <li><strong>{{ action.grouper }}</strong> <ul> {% for reminder in action.list %} <li class="{% if reminder.is_expired %}expired-reminder{% endif %}"> - {{reminder.time_with_format}} + {{ reminder.time|date:"SHORT_DATETIME_FORMAT" }} <a class="link" href="{% url 'funds:submissions:reminders:delete' object.id reminder.id %}"> <svg class="icon icon--delete"><use xlink:href="#delete"></use></svg> </a>