django-formfieldsetFieldset Rendering For Non-Admin Forms | |
Download |
django-formfieldset Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Atamert ?l?gen
- Publisher web site:
- http://muhuk.com
django-formfieldset Tags
django-formfieldset Description
Fieldset Rendering For Non-Admin Forms django-formfieldset is a simple Django plugin that provides a mix-in class for admin-like fieldset rendering.Installation: 1. Add "django-formfieldset" directory to your Python path. 2. Add "formfieldset" to your INSTALLED_APPS tuple found in your settings file. (optional - to be able to run tests)Testing & ExampleThere is an example project in the example/ folder. To run automated tests for django-formfieldset run the following command in example/ directory:python manage.py test formfieldsetTo run the example project:python manage.py runserverThen you can visit http://localhost:8000/ to view the example.Usage: 1. Create your form with FieldsetMixin. 2. Add a fieldsets attribute to your form. See admin docs for detailed explanation. 3. Render your form with fieldset enabled methods: * You can use iter_fieldsets() for custom form rendering. It will yield Fieldset objects. Fieldsets act as iterators for widgets in them. * You can use as_fieldset_table(), as_fieldset_ul() and as_fieldset_p() methods that act like built-in as_* method except fieldset support. Here are some key features of "django-formfieldset": · Fieldset functionality similar to ModelAdmin · Shorthand rendering functions with fieldsets both for whole forms and for individual fieldsets · render as P · render as TABLE · render as UL · Templates are class variables · Overrides nothing in django.forms.Form Requirements: · Django · Python
django-formfieldset Related Software