Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Order the muscles by name

Roland Geideref89f4669601
diff --git a/exercises/models.py b/exercises/models.py
index 4037cf6d6..5a76ccdd5 100644
--- a/exercises/models.py
+++ b/exercises/models.py
@@ -42,6 +42,10 @@ class Muscle(models.Model):
# Whether to use the front or the back image for background
is_front = models.BooleanField(default=1)
+ # Metaclass to set some other properties
+ class Meta:
+ ordering = ["name", ]
+
def __unicode__(self):
"""Return a more human-readable representation
"""