SOITA/questionnaire/models.py
2022-05-15 22:12:32 +02:00

22 lines
712 B
Python

from django.db import models
from .managers import QuestionnaireManager
class Questionnaire(models.Model):
overall = models.IntegerField(default=0)
functionality = models.IntegerField(default=0)
look = models.IntegerField(default=0)
intuitive = models.IntegerField(default=0)
bugs = models.IntegerField(default=0)
tech = models.IntegerField(default=0)
potential = models.IntegerField(default=0)
worst = models.IntegerField(default=0)
desc = models.CharField(max_length=255, default="")
fill_by = models.ForeignKey(
"users.User",
null=True,
related_name="questionnaire",
on_delete=models.CASCADE
)
objects = QuestionnaireManager()