Forms#
- class banjo.forms.ApiRouteForm(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)[source]#
Dynamically instantiates a form matching a route’s args dict. ApiRouteForm is used in automatically constructing the API page for each route. Args should be a dict of {param_name: type}, where type is in [str, bool, int, float].
- classmethod for_args(args, class_name=None)[source]#
Dynamically define a form class for the given route args.
- property media#
Return all media required to render the widgets on this form.