Django Serialize Dict Object Has No Attribute Meta

broken image
broken image

Interest = models.ManyToManyField(OlympiadSubject, School = models.ForeignKey(School, on_delete=models.PROTECT, Grade = models.CharField(max_length=2, choices=GRADE_CHOICES, default='1',Īge = models.PositiveSmallIntegerField(default=7, verbose_name='Возраст', Sex = models.CharField(max_length=1, choices=SEX_CHOICES, default='М', User = models.OneToOneField(User, on_delete=models.CASCADE) Standart model User is not enought for me, so I created another model named Profile: class Profile(models.Model): I’m trying to make a registration page for my project.