Skip to content

Mixins editing

AsyncFormMixin

A mixin class that provides facilities for creating and displaying forms.

AsyncFormMixin is similar to django's FormMixin with a number of differences:

  1. get_form_class() method is async.
  2. get_form() method is async.
  3. form_valid() method is async.
  4. form_invalid() method is async.
  5. get_context_data() is async.

AsyncModelFormMixin

A form mixin that works on ModelForms, rather than a standalone form.

AsyncModelFormMixin similar to django's ModelFormMixin with a number of differences:

  1. AsyncModelFormMixin inherits from AsyncFormMixin and AsyncSingleObjectMixin so anything mentioned on those classes also applies here.
  2. get_form_class() method is async.

AsyncProcessFormView

A mixin that provides basic HTTP GET and POST workflow.

AsyncProcessFormView works similar to django's ProcessFormView, but it inherits from AsyncView and all the http methods are async.

AsyncDeletionMixin

Enables handling of the DELETE HTTP action.

works similar to django's DeletionMixin but delete() and post() methods are async.