"""Core models"""
from django.db import models
from django.utils.translation import gettext_lazy as _


class Question(models.Model):
    """Question model"""

    question = models.TextField()


class Answer(models.Model):
    """Answer model"""

    class Choices(models.IntegerChoices):
        """Answer choices"""

        FULLDIS = 0, _("fully disagree")
        SEMIDIS = 1, _("somewhat disagree")
        MEDIUM = 2, _("neither agree nor disagree")
        SEMIAGREE = 3, _("somewhat agree")
        FULLAGREE = 4, _("fully agree")

    choice = models.IntegerField(choices=Choices.choices)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)

"""Core models"""
from django.db import models
from django.utils.translation import gettext_lazy as _


class Question(models.Model):
    """Question model"""

    question = models.TextField()


class Answer(models.Model):
    """Answer model"""

    class Choices(models.IntegerChoices):
        """Answer choices"""

        FULLDIS = 0, _("fully disagree")
        SEMIDIS = 1, _("somewhat disagree")
        MEDIUM = 2, _("neither agree nor disagree")
        SEMIAGREE = 3, _("somewhat agree")
        FULLAGREE = 4, _("fully agree")

    choice = models.IntegerField(choices=Choices.choices)
    question = models.ForeignKey(Question, on_delete=models.CASCADE)

Core models Question model Answer model Answer choices