Skip to content

Instantly share code, notes, and snippets.

View TamaraAtanasoska's full-sized avatar

Tamara TamaraAtanasoska

View GitHub Profile
from django.views.generic.base import View, TemplateResponseMixin
from django.views.generic.edit import FormMixin, ProcessFormView
class MultipleFormsMixin(FormMixin):
"""
A mixin that provides a way to show and handle several forms in a
request.
"""
form_classes = {} # set the form classes as a mapping