:py:mod:`oioioi.oi.models` ========================== .. py:module:: oioioi.oi.models Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.oi.models.School oioioi.oi.models.OIRegistration Attributes ~~~~~~~~~~ .. autoapisummary:: oioioi.oi.models.T_SHIRT_SIZES oioioi.oi.models.PROVINCES oioioi.oi.models.CLASS_TYPES .. py:data:: T_SHIRT_SIZES .. py:data:: PROVINCES .. py:data:: CLASS_TYPES :annotation: = [['1LO', 'pierwsza szkoły średniej'], ['2LO', 'druga szkoły średniej'], ['3LO', 'trzecia szkoły... .. py:class:: School(*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:: unique_together :annotation: = ['name', 'postal_code'] .. py:attribute:: index_together :annotation: = [['city', 'is_active'], ['province', 'is_active']] .. py:attribute:: ordering :annotation: = ['province', 'city', 'address', 'name'] .. py:attribute:: name .. py:attribute:: address .. py:attribute:: postal_code .. py:attribute:: city .. py:attribute:: province .. py:attribute:: phone .. py:attribute:: email .. py:attribute:: is_active .. py:attribute:: is_approved .. py:method:: __str__() Return str(self). .. py:method:: get_participants_url() .. py:method:: is_similar(instance) .. py:class:: OIRegistration(*args, **kwargs) Bases: :py:obj:`oioioi.participants.models.RegistrationModel` Make subclasses preserve the alters_data attribute on overridden methods. .. py:attribute:: address .. py:attribute:: postal_code .. py:attribute:: city .. py:attribute:: phone .. py:attribute:: birthday .. py:attribute:: birthplace .. py:attribute:: t_shirt_size .. py:attribute:: school .. py:attribute:: class_type .. py:attribute:: terms_accepted .. py:method:: __str__() Return str(self). .. py:method:: erase_data()