Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove some parameters from models

Roland Geiderc246cde47dc9
diff --git a/wger/core/models.py b/wger/core/models.py
index f371d4edd..b762678bb 100644
--- a/wger/core/models.py
+++ b/wger/core/models.py
@@ -310,7 +310,6 @@ by the US Department of Agriculture. It is extremely complete, with around
'deactivate)'),
validators=[MinValueValidator(0),
MaxValueValidator(30)],
- max_length=30,
default=0)
'''Number of Days for email weight reminder'''
diff --git a/wger/exercises/models.py b/wger/exercises/models.py
index ff82552b2..9f2c31e63 100644
--- a/wger/exercises/models.py
+++ b/wger/exercises/models.py
@@ -171,7 +171,6 @@ class Exercise(AbstractSubmissionModel, AbstractLicenseModel, models.Model):
verbose_name=_('Name'))
muscles = models.ManyToManyField(Muscle,
- null=True,
blank=True,
verbose_name=_('Primary muscles'))
'''Main muscles trained by the exercise'''
@@ -179,13 +178,11 @@ class Exercise(AbstractSubmissionModel, AbstractLicenseModel, models.Model):
muscles_secondary = models.ManyToManyField(Muscle,
verbose_name=_('Secondary muscles'),
related_name='secondary_muscles',
- null=True,
blank=True)
'''Secondary muscles trained by the exercise'''
equipment = models.ManyToManyField(Equipment,
verbose_name=_('Equipment'),
- null=True,
blank=True)
'''Equipment needed by this exercise'''