:py:mod:`oioioi.quizzes.models` =============================== .. py:module:: oioioi.quizzes.models Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.quizzes.models.Quiz oioioi.quizzes.models.QuizQuestion oioioi.quizzes.models.QuizAnswer oioioi.quizzes.models.QuizPicture oioioi.quizzes.models.QuizQuestionPicture oioioi.quizzes.models.QuizAnswerPicture oioioi.quizzes.models.QuizSubmission oioioi.quizzes.models.QuizSubmissionAnswer oioioi.quizzes.models.QuizSubmissionTextAnswer oioioi.quizzes.models.QuestionReport .. py:class:: Quiz(*args, **kwargs) Bases: :py:obj:`oioioi.problems.models.Problem` Represents a problem in the problems database. Instances of :class:`Problem` do not represent problems in contests, see :class:`oioioi.contests.models.ProblemInstance` for those. Each :class:`Problem` has associated main :class:`oioioi.contests.models.ProblemInstance`, called main_problem_instance: 1) It is not assigned to any contest. 2) It allows sending submissions aside from contests. 3) It is a base to create another instances. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:class:: QuizQuestion(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: ordering :annotation: = ['order'] .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: question .. py:attribute:: points .. py:attribute:: is_multiple_choice .. py:attribute:: quiz .. py:attribute:: order .. py:attribute:: is_text_input .. py:class:: QuizAnswer(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: ordering :annotation: = ['order'] .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: question .. py:attribute:: answer .. py:attribute:: is_correct .. py:attribute:: order .. py:class:: QuizPicture(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: abstract :annotation: = True .. py:attribute:: ordering :annotation: = ['order'] .. py:property:: quiz :abstractmethod: .. py:attribute:: caption .. py:attribute:: file .. py:attribute:: order .. py:method:: get_absolute_url() :abstractmethod: .. py:class:: QuizQuestionPicture(*args, **kwargs) Bases: :py:obj:`QuizPicture` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`QuizPicture` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:property:: quiz .. py:attribute:: question .. py:method:: get_absolute_url() .. py:class:: QuizAnswerPicture(*args, **kwargs) Bases: :py:obj:`QuizPicture` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`QuizPicture` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:property:: quiz .. py:attribute:: answer .. py:method:: get_absolute_url() .. py:class:: QuizSubmission(*args, **kwargs) Bases: :py:obj:`oioioi.contests.models.Submission` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:class:: QuizSubmissionAnswer(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: quiz_submission .. py:attribute:: answer .. py:attribute:: is_selected .. py:class:: QuizSubmissionTextAnswer(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: unique_together :annotation: = [['quiz_submission', 'question']] .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: quiz_submission .. py:attribute:: question .. py:attribute:: text_answer .. py:class:: QuestionReport(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: submission_report .. py:attribute:: comment .. py:attribute:: score .. py:attribute:: question .. py:attribute:: question_max_score .. py:attribute:: status