wadofstuff-django-formsExtended Django forms | |
Download |
wadofstuff-django-forms Ranking & Summary
Advertisement
wadofstuff-django-forms Tags
wadofstuff-django-forms Description
Extended Django forms wadofstuff-django-forms is a set of utility functions and classes to extend the functionality of Django forms.Functionssecurity_hash(request, form, exclude=None, *args)Calculates a security hash for the given Form/FormSet instance.This creates a list of the form field names/values in a deterministicorder, pickles the result with the SECRET_KEY setting, then takes an md5hash of that.Allows a list of form fields to be excluded from the hash calculation. Thisis useful form fields that may have their values set programmatically.ClassesBoundFormWizardA subclass of Django's FormWizard that adds the following functionality:- Renders `previous_fields` as a list of bound form fields in the template context rather than as raw html.- Can handle FormSets.The usage of this class is identical to that documented athttp://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/ withthe exception that when rendering `previous_fields` you should change yourwizard step templates from: {{ previous_fields|safe }}to: {% for f in previous_fields %}{{ f.as_hidden }}{% endfor %} Requirements: · Python · Django
wadofstuff-django-forms Related Software