Merge pull request #20 from WDI-Ideas/development

Development
This commit is contained in:
BOBBY VISHWAKARMA
2024-04-01 11:55:25 +05:30
committed by GitHub
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# Generated by Django 5.0.2 on 2024-04-01 06:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('module_activity', '0015_remove_beveragerecord_glass_count_and_more'),
]
operations = [
migrations.AlterField(
model_name='principalhealthdata',
name='height_unit',
field=models.CharField(blank=True, choices=[('cm', 'cm'), ('ft+inch', 'ft+inch')], default='cm', help_text='Select your height unit.', max_length=10, null=True, verbose_name='Height Unit'),
),
migrations.AlterField(
model_name='principalhealthdata',
name='weight_unit',
field=models.CharField(blank=True, choices=[('kg', 'kg'), ('lbs', 'lbs')], default='lbs', help_text='Select your weight unit.', max_length=10, null=True, verbose_name='Weight Unit'),
),
]

View File

@@ -77,6 +77,7 @@ class PrincipalHealthData(BaseModel):
('kg', 'kg'),
('lbs', 'lbs'),
],
default="lbs",
blank=True,
null=True,
verbose_name="Weight Unit",
@@ -108,6 +109,7 @@ class PrincipalHealthData(BaseModel):
('cm', 'cm'),
('ft+inch', 'ft+inch'),
],
default='cm',
blank=True,
null=True,
verbose_name="Height Unit",