oioioi.contestexcl.models
¶
Module Contents¶
Classes¶
Represents an exclusiveness config for a contest. |
- class oioioi.contestexcl.models.ExclusivenessConfig(*args, **kwargs)[source]¶
Bases:
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 byend_date
.- clean()[source]¶
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.