Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set default sorting of email logs

Roland Geider028b8bea5739
diff --git a/wger/email/models.py b/wger/email/models.py
index e53a27977..294d34044 100644
--- a/wger/email/models.py
+++ b/wger/email/models.py
@@ -25,6 +25,9 @@ class Log(models.Model):
A log of a sent email
'''
+ class Meta:
+ ordering = ["-date", ]
+
date = models.DateField(auto_now=True)
'''
Date when the log was created