Django's FormPreview updated to use class based views.
Project description
The FormPreview class from the contrib.formtools app is a class based view that’s been in Django for over 5 years. Originally written by Adrian Holovaty, it hasn’t changed significantly since its release.
Starting in version 1.3, Django has a “blessed” version of class based views. This package contains an updated version of FormPreview that inherits from the new FormView class. This enables a consistent API for class based views in Django but also mantains 100% compatibility with FormPreview as it is found in Django 1.3. Of particular use are the methods provided by the FormMixin class, from which FormView inherits. For example, the get_form method gives you control over the instantiation of the form class. This allows you to construct an instance with non-standard arguments which was the original motivation of the patch.
I’ve filed a ticket on Django’s trac to include these changes in Django 1.4.
Note that this package is just a modified version of FormPreview currently in Django packaged for ease of use on Languagelab.com. For the authors of the Django project, see its AUTHORS file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-cbv-formpreview-0.1.2a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8926090ab2c0218052e3d91116d252ad355254c0c31a5f0a5fd9788a75483d58 |
|
MD5 | 5a312efa46f0102b3e9abee890138af8 |
|
BLAKE2b-256 | bd249428f2ec403d05a99c7830734d37d0fdcf1d78439cd5c099a1c37e5e444d |