У меня ошибка: polls.Choice.division_names: (fields.E300) Поле определяет связь с моделью Division, которая либо не установлена, либо является абстрактной
models.py
division_id = models.IntegerField(primary_key=True)
division_name = models.CharField(max_length=200)
def __str__(self):
return self.division_name
class Meta:
app_label = 'db'
db_table = "divisions"
class Choice(models.Model):
user = models.ForeignKey(User, on_delete=models.DO_NOTHING, null=True, blank=True)
question = models.ForeignKey(Question, on_delete=models.CASCADE)
funny_name = models.CharField(max_length=200)
votes = models.IntegerField(default=0)
division_names = models.ForeignKey(Division, on_delete=models.DO_NOTHING, null=True, blank=True)
def __str__(self):
return self.funny_name```