oioioi.contestexcl.models

Module Contents

Classes

ExclusivenessConfigManager

ExclusivenessConfig

Represents an exclusiveness config for a contest.

class oioioi.contestexcl.models.ExclusivenessConfigManager[source]

Bases: django.db.models.Manager

get_active(timestamp)[source]
get_active_between(start, end)[source]
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 by end_date.

class Meta[source]

Bases: object

verbose_name[source]
verbose_name_plural[source]
contest[source]
enabled[source]
start_date[source]
end_date[source]
objects[source]
__str__()[source]

Return str(self).

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.