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

23 lines
648 B
Python

from django.db.models import Manager
from django.apps import apps
from django.conf import settings
class QuestionnaireManager(Manager):
def create(
self,
**kwargs
):
instance = super().create(
overall=kwargs.get("overall"),
functionality=kwargs.get("functionality"),
look=kwargs.get("look"),
intuitive=kwargs.get("intuitive"),
bugs=kwargs.get("bugs"),
tech=kwargs.get("tech"),
potential=kwargs.get("potential"),
worst=kwargs.get("worst"),
desc=kwargs.get("desc"),
)
return instance