oioioi.contestlogo.models

Module Contents

Classes

ContestLogo

Make subclasses preserve the alters_data attribute on overridden methods.

ContestIcon

Make subclasses preserve the alters_data attribute on overridden methods.

Functions

make_logo_filename(instance, filename)

make_icon_filename(instance, filename)

oioioi.contestlogo.models.make_logo_filename(instance, filename)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

class Meta[source]

Bases: object

verbose_name[source]
verbose_name_plural[source]
property filename[source]
contest[source]
image[source]
updated_at[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.

oioioi.contestlogo.models.make_icon_filename(instance, filename)[source]
class oioioi.contestlogo.models.ContestIcon(*args, **kwargs)[source]

Bases: django.db.models.Model

Make subclasses preserve the alters_data attribute on overridden methods.

class Meta[source]

Bases: object

verbose_name[source]
verbose_name_plural[source]
property filename[source]
contest[source]
image[source]
updated_at[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.