oioioi.usercontests.forms

Module Contents

Classes

UserContestForm

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

class oioioi.usercontests.forms.UserContestForm(*args, **kwargs)[source]

Bases: oioioi.contests.forms.SimpleContestForm

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 Meta[source]

Bases: oioioi.contests.forms.SimpleContestForm.Meta

fields = ['name', 'id', 'default_submissions_limit', 'contact_email'][source]
clean()[source]

Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.