:py:mod:`oioioi.contestexcl.models` =================================== .. py:module:: oioioi.contestexcl.models Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.contestexcl.models.ExclusivenessConfigManager oioioi.contestexcl.models.ExclusivenessConfig .. py:class:: ExclusivenessConfigManager Bases: :py:obj:`django.db.models.Manager` .. py:method:: get_active(timestamp) .. py:method:: get_active_between(start, end) .. py:class:: ExclusivenessConfig(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Represents an exclusiveness config for a contest. If it is enabled it becomes active on the date specified by ``start_date`` and stays active until the date specified by ``end_date``. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: contest .. py:attribute:: enabled .. py:attribute:: start_date .. py:attribute:: end_date .. py:attribute:: objects .. py:method:: __str__() Return str(self). .. py:method:: clean() Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.