Private
Public Access
1
0

better names for categories

This commit is contained in:
Sander Roosendaal
2020-05-27 13:16:51 +02:00
parent eb41a5f17f
commit 8bfbb2bdf8
5 changed files with 56 additions and 23 deletions

View File

@@ -243,15 +243,9 @@ def update_records(url=c2url,verbose=True):
class CalcAgePerformance(models.Model):
weightcategories = (
('hwt','heavy-weight'),
('lwt','light-weight'),
)
weightcategories = mytypes.weightcategories
sexcategories = (
('male','male'),
('female','female'),
)
sexcategories = mytypes.sexcategories
weightcategory = models.CharField(default="hwt",
max_length=30,
@@ -288,10 +282,7 @@ class PowerTimeFitnessMetric(models.Model):
@python_2_unicode_compatible
class C2WorldClassAgePerformance(models.Model):
weightcategories = (
('hwt','heavy-weight'),
('lwt','light-weight'),
)
weightcategories = mytypes.weightcategories
sexcategories = (
('male','male'),
@@ -593,10 +584,8 @@ sexcategories = (
('female','female'),
('not specified','not specified'),
)
weightcategories = (
('hwt','heavy-weight'),
('lwt','light-weight'),
)
weightcategories = mytypes.weightcategories
# Plan