:py:mod:`oioioi.programs.forms` =============================== .. py:module:: oioioi.programs.forms Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.programs.forms.CompilerInlineForm oioioi.programs.forms.ProblemCompilerInlineForm oioioi.programs.forms.ProblemAllowedLanguageInlineForm .. py:class:: CompilerInlineForm(*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:: Media Bases: :py:obj:`object` .. py:attribute:: js :annotation: = ['common/choose_compiler.js'] .. py:class:: ProblemCompilerInlineForm(*args, **kwargs) Bases: :py:obj:`CompilerInlineForm` 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:method:: save(commit=True) Save this form's self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance. .. py:class:: ProblemAllowedLanguageInlineForm(*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.