Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Default sorting of contract types

Roland Geidercc1828790cc5
diff --git a/wger/gym/models.py b/wger/gym/models.py
index e70c43e4f..a20133aef 100644
--- a/wger/gym/models.py
+++ b/wger/gym/models.py
@@ -361,6 +361,12 @@ class ContractType(m.Model):
specify types, such as e.g. 'with personal trainer', 'regular', etc.
'''
+ class Meta:
+ '''
+ Order by name
+ '''
+ ordering = ["name", ]
+
gym = m.ForeignKey(Gym,
editable=False)
'''