:py:mod:`oioioi.participants.forms` =================================== .. py:module:: oioioi.participants.forms Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.participants.forms.ParticipantForm oioioi.participants.forms.RegionForm oioioi.participants.forms.OpenRegistrationForm oioioi.participants.forms.ExtendRoundForm oioioi.participants.forms.TermsAcceptedPhraseForm .. py:class:: ParticipantForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None) Bases: :py:obj:`django.forms.ModelForm` The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: fields :annotation: = __all__ .. py:attribute:: model .. py:method:: clean_user() .. py:class:: RegionForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None) Bases: :py:obj:`django.forms.ModelForm` The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: fields :annotation: = __all__ .. py:attribute:: model .. py:method:: clean_short_name() .. py:class:: OpenRegistrationForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None) Bases: :py:obj:`django.forms.ModelForm` The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: model .. py:attribute:: exclude :annotation: = ['participant'] .. py:method:: clean_terms_accepted() .. py:class:: ExtendRoundForm(request_contest, *args, **kwargs) Bases: :py:obj:`django.forms.Form` A collection of Fields, plus their associated data. .. py:attribute:: _selected_action .. py:attribute:: extra_time .. py:class:: TermsAcceptedPhraseForm(*args, **kwargs) Bases: :py:obj:`django.forms.ModelForm` The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: model .. py:attribute:: fields :annotation: = ['text'] .. py:attribute:: verbose_name :annotation: = fsaf .. py:attribute:: allowed_tags :annotation: = ['a', 'article', 'b', 'blockquote', 'br', 'center', 'code', 'em', 'font', 'h1', 'h2', 'h3',... .. py:attribute:: allowed_attributes .. py:method:: tag_as_str(tag) .. py:method:: clean_content()