oioioi.programs.forms

Module Contents

Classes

CompilerInlineForm

The main implementation of all the Form logic. Note that this class is

ProblemCompilerInlineForm

The main implementation of all the Form logic. Note that this class is

ProblemAllowedLanguageInlineForm

The main implementation of all the Form logic. Note that this class is

class oioioi.programs.forms.CompilerInlineForm(*args, **kwargs)[source]

Bases: 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.

class Media[source]

Bases: object

js = ['common/choose_compiler.js'][source]
class oioioi.programs.forms.ProblemCompilerInlineForm(*args, **kwargs)[source]

Bases: 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.

save(commit=True)[source]

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.

class oioioi.programs.forms.ProblemAllowedLanguageInlineForm(*args, **kwargs)[source]

Bases: 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.