Self hosted FLOSS fitness/workout, nutrition and weight tracker
Assign the days of the week directly, no need to do another assignment.
Roland Geider4c6576855c2c
diff --git a/manager/models.py b/manager/models.pyindex 68e45f6cc..9f477417d 100644--- a/manager/models.py+++ b/manager/models.py@@ -55,13 +55,12 @@ For example 'Focus on back' or 'Week 1 of program xy'.'''))class Day(models.Model):"""Model for a training day"""- CHOICES = DAYS_OF_WEEK_CHOICEStraining = models.ForeignKey(TrainingSchedule, verbose_name = _('Training'))description = models.CharField(max_length=100,verbose_name = _('Description'),help_text=_('Ususally a description about what parts are trained, like "Arms" or "Pull Day"'))- day = models.IntegerField(max_length=1, choices=CHOICES, verbose_name = _('Day'))+ day = models.IntegerField(max_length=1, choices=DAYS_OF_WEEK_CHOICES, verbose_name = _('Day'))def __unicode__(self):"""Return a more human-readable representation