# django-extra-views

Django Extra Views provides a number of additional class-based generic views to complement those provide by Django itself. These mimic some of the functionality available through the standard admin interface, including Model, Inline and Generic Formsets.

## Features

- `FormSet` and `ModelFormSet` views - The formset equivalents of `FormView` and `ModelFormView`.

- `InlineFormSetView` - Lets you edit a formset related to a model (using Django’s `inlineformset_factory`).

- `CreateWithInlinesView` and `UpdateWithInlinesView` - Lets you edit a model and multiple inline formsets all in one view.

- `GenericInlineFormSetView`, the equivalent of `InlineFormSetView` but for `GenericForeignKeys`.

- Support for generic inlines in `CreateWithInlinesView` and `UpdateWithInlinesView`.

- Support for naming each inline or formset in the template context with `NamedFormsetsMixin`.

- `SortableListMixin` - Generic mixin for sorting functionality in your views.

- `SearchableListMixin` - Generic mixin for search functionality in your views.

- `SuccessMessageMixin` and `FormSetSuccessMessageMixin` - Generic mixins to display success messages after form submission.

## Table of Contents

- Getting Started
  - Installation
  - Quick Examples
- Formset Views
  - FormSetView
  - ModelFormSetView
  - InlineFormSetView
  - CreateWithInlinesView and UpdateWithInlinesView
  - GenericInlineFormSetView
- Formset Customization Examples
  - Overriding formset_kwargs and factory_kwargs at run time
  - Overriding the the base formset class
  - Initial data for ModelFormSet and InlineFormSet
  - Passing arguments to the form constructor
  - Named formsets
  - Success messages
- List Views
  - Searchable List Views
  - Sortable List View

## Reference

- Change History