Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Change default order for plans to start date

Roland Geider74ec79a5036d
diff --git a/wger/nutrition/models/plan.py b/wger/nutrition/models/plan.py
index dc4ab8c6f..d412a48da 100644
--- a/wger/nutrition/models/plan.py
+++ b/wger/nutrition/models/plan.py
@@ -31,7 +31,6 @@ from wger.nutrition.helpers import NutritionalValues
from wger.utils.cache import cache_mapper
from wger.weight.models import WeightEntry
-
logger = logging.getLogger(__name__)
@@ -42,9 +41,8 @@ class NutritionPlan(models.Model):
# Metaclass to set some other properties
class Meta:
- # Order by creation_date, descending (oldest first)
ordering = [
- '-creation_date',
+ '-start',
]
user = models.ForeignKey(