Open hamit3 opened 5 months ago
Choices option is not working, you can check below:
TRAINING_TYPE_CHOICES = ( (TRAINING, 'TRAINING'), (MATCH, 'MATCH'), (REGENERATION, 'REGENERATION'), (REHABILITATION, 'REHABILITATION'), (OTHER, 'OTHER'), )
training_type = models.PositiveSmallIntegerField(choices=TRAINING_TYPE_CHOICES, default=1, null=False, blank=False)
DataField and TimeField Widget Problem. Widgets are wrong (date widget in time input)
training_date = models.DateField(null=True, blank=True, default='2020-05-21') start_time = models.TimeField(null=True, blank=True, default='00:00:') end_time = models.TimeField(null=True, blank=True, default='00:00:')
training_type = models.PositiveSmallIntegerField(choices=TRAINING_TYPE_CHOICES, default=1, null=False, blank=False)