Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add missing string representation for cache

Roland Geidere403f24f4043
diff --git a/wger/core/models.py b/wger/core/models.py
index 2693feaf8..e3bea3522 100644
--- a/wger/core/models.py
+++ b/wger/core/models.py
@@ -492,6 +492,12 @@ class UserCache(models.Model):
get_user_last_activity helper function.
'''
+ def __str__(self):
+ '''
+ Return a more human-readable representation
+ '''
+ return u"Cache for user {0}".format(self.user)
+
@python_2_unicode_compatible
class DaysOfWeek(models.Model):