:py:mod:`oioioi.teams.models` ============================= .. py:module:: oioioi.teams.models Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.teams.models.Team oioioi.teams.models.TeamMembership oioioi.teams.models.TeamsConfig Attributes ~~~~~~~~~~ .. autoapisummary:: oioioi.teams.models.teams_list_visibility_options .. py:class:: Team(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:attribute:: name .. py:attribute:: login .. py:attribute:: user .. py:attribute:: contest .. py:attribute:: join_key .. py:method:: save(*args, **kwargs) 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. .. py:class:: TeamMembership(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Represents a realation between an user and a team. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: unique_together :annotation: = ['user', 'team'] .. py:attribute:: user .. py:attribute:: team .. py:method:: validate_unique(*args, **kwargs) Check unique constraints on the model and raise ValidationError if any failed. .. py:data:: teams_list_visibility_options .. py:class:: TeamsConfig(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:attribute:: contest .. py:attribute:: enabled .. py:attribute:: max_team_size .. py:attribute:: modify_begin_date .. py:attribute:: modify_end_date .. py:attribute:: teams_list_visible