Mathematics app forms

Calculate exercise conditions choice form.

class CalculationChoiceForm(*args: object, **kwargs: object)

Bases: Form

Form for choosing the conditions of a mathematical task.

clean() dict[str, Any]

Validate the entered by form task conditions.

property helper: FormHelper

Django-crispy-form helper.

property media

Return all media required to render the widgets on this form.

Calculate exercise form input module.

class NumberInputForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases: Form

Form for entering the user’s answer in numbers.

property media

Return all media required to render the widgets on this form.