diff --git a/musician/templates/musician/billing.html b/musician/templates/musician/billing.html
index d3ba915..75f2580 100644
--- a/musician/templates/musician/billing.html
+++ b/musician/templates/musician/billing.html
@@ -27,7 +27,7 @@
{% for bill in object_list %}
{{ bill.number }} |
- {{ bill.created_on }} |
+ {{ bill.created_on|date:"SHORT_DATE_FORMAT" }} |
{{ bill.type }} |
{{ bill.total|floatformat:2|localize }}€ |
|
diff --git a/musician/views.py b/musician/views.py
index 1bdc69b..ec3ac36 100644
--- a/musician/views.py
+++ b/musician/views.py
@@ -1,5 +1,6 @@
import logging
import smtplib
+import datetime
from django.conf import settings
from django.contrib import messages
@@ -181,6 +182,8 @@ class BillingView(ServiceListView):
def get_queryset(self):
qs = super().get_queryset()
qs = sorted(qs, key=lambda x: x.created_on, reverse=True)
+ for q in qs:
+ q.created_on = datetime.datetime.strptime(q.created_on, "%Y-%m-%d")
return qs