django-cbv-formpreview

Django's FormPreview updated to use class based views
Download

django-cbv-formpreview Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Ryan Kaskel
  • Publisher web site:
  • http://ryankaskel.com

django-cbv-formpreview Tags


django-cbv-formpreview Description

Django's FormPreview updated to use class based views 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 (https://code.djangoproject.com/browser/django/tags/releases/1.3/django/contrib/formtools/preview.py "preview.py source 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. django-cbv-formpreview is a Django app that allows you to construct an instance with non-standard arguments which was the original motivation of the patch.Developer commentsI've filed a (https://code.djangoproject.com/ticket/16174 "Class based view update for FormPreview") 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 (http://www.languagelab.com "Languagelab.com"). For the authors of the Django project, see its (https://code.djangoproject.com/browser/django/trunk/AUTHORS "Django's authors"). Requirements: · Python


django-cbv-formpreview Related Software