Skip to content

Commit

Permalink
update training models
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy-Golodnykh committed Jun 13, 2024
1 parent 75e6c48 commit fc71405
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions blackfox/training/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ class FitnessDiary(models.Model):
verbose_name='дата питания',
db_index=True
)
calories = models.PositiveIntegerField(
calories_actual = models.PositiveIntegerField(
default=0,
verbose_name='калории',
verbose_name='калории потребленные',
validators=[MinValueValidator(0), MaxValueValidator(10_000)]
)
calories_target = models.PositiveIntegerField(
default=0,
verbose_name='калории запланированные',
validators=[MinValueValidator(0), MaxValueValidator(10_000)]
)
carbohydrate = models.FloatField(
Expand Down Expand Up @@ -81,8 +86,10 @@ class Project(models.Model):
verbose_name='целевой вес',
validators=[MinValueValidator(30), MaxValueValidator(250)]
)
is_closed = models.BooleanField(verbose_name='проект закрыт',
default=False)
is_closed = models.BooleanField(
verbose_name='проект закрыт',
default=False
)

class Meta:
ordering = ['-start_date']
Expand Down

0 comments on commit fc71405

Please sign in to comment.