1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Un peu de nettoyage, rajout de commentaires

This commit is contained in:
quark
2024-05-25 22:34:59 +02:00
committed by korenstin
parent 3f997f94fa
commit 896095a44c
11 changed files with 51 additions and 158 deletions

View File

@ -13,6 +13,12 @@ from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from member.models import Club
#################################################################
# TO DO
# - link allergen with one food (basic or transformed) with check
# - check on basic food
# - check on transformed food
#################################################################
class QR_code(models.Model):
"""
@ -173,10 +179,14 @@ class BasicFood(models.Model):
verbose_name=_("is DDM"),
default=False,
)
arrival_date = models.DateTimeField(
verbose_name=_('arrival date'),
default=timezone.now,
)
expiry_date = models.DateTimeField(
verbose_name=_('expiry date'),
default=timezone.now,
blank=True,
null = True,
)