oioioi.questions.models

Module Contents

Classes

Message

Make subclasses preserve the alters_data attribute on overridden methods.

ReplyTemplate

Make subclasses preserve the alters_data attribute on overridden methods.

MessageView

Make subclasses preserve the alters_data attribute on overridden methods.

MessageNotifierConfig

Make subclasses preserve the alters_data attribute on overridden methods.

QuestionSubscription

Make subclasses preserve the alters_data attribute on overridden methods.

Functions

send_notification(sender, instance, created, **kwargs)

Attributes

oioioi.questions.models.message_kinds[source]
oioioi.questions.models.message_kind_labels[source]
oioioi.questions.models.logger[source]
class oioioi.questions.models.Message(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

property to_quote[source]
contest[source]
round[source]
problem_instance[source]
top_reference[source]
author[source]
kind[source]
topic[source]
content[source]
date[source]
pub_date[source]
marked_read_by[source]
mail_sent[source]
save(*args, **kwargs)[source]

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

can_have_replies()[source]
_has_category()[source]
__str__()[source]

Return str(self).

get_absolute_url()[source]
get_user_date()[source]

returns date visible by a user

get_kind_label()[source]
class oioioi.questions.models.ReplyTemplate(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

property visible_name[source]
contest[source]
name[source]
content[source]
usage_count[source]
__str__()[source]

Return str(self).

class oioioi.questions.models.MessageView(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

class Meta[source]

Bases: object

unique_together = ['message', 'user'][source]
message[source]
user[source]
date[source]
class oioioi.questions.models.MessageNotifierConfig(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

class Meta[source]

Bases: object

unique_together = ['contest', 'user'][source]
verbose_name[source]
verbose_name_plural[source]
contest[source]
user[source]
oioioi.questions.models.send_notification(sender, instance, created, **kwargs)[source]
class oioioi.questions.models.QuestionSubscription(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

user[source]
contest[source]