Correct Reporter model a_choice field type according to CHOICES tuple

This commit is contained in:
Andrey Shustov 2022-06-14 05:50:15 +03:00
parent d5f065e429
commit c8a01082ab

View File

@ -43,7 +43,7 @@ class Reporter(models.Model):
last_name = models.CharField(max_length=30)
email = models.EmailField()
pets = models.ManyToManyField("self")
a_choice = models.CharField(max_length=30, choices=CHOICES, blank=True)
a_choice = models.IntegerField(choices=CHOICES, null=True, blank=True)
objects = models.Manager()
doe_objects = DoeReporterManager()