Nov 7, 2011

Forms apps, snippets, widgets

django-forms-ext

Fields
  • ForeignKeyChoiceField - When you have a formset that has a foreign key, Django will fire off a new (identical) query to build the choices for that field for each form in the formset by default. Using this field will allow you to run the query once for the choices and re-use that queryset for each form in the formset. CommaSeparatedField - Django has a comma separated integer field, but not just strings. Stupid, I know... we created one for use with strings 
  • QuerysetChoiceField - When you want to build a select box with a queryset but don't want a model instance when saving, use this thing. 

Views
  • FormSetView - Django 1.3's generic views do not include a FormSet view. That's what this is.

django-stdfields

Fields
  • MinutesField: use an integer to represent a duration of minutes and hours
  • EnumIntegerField: makes working with choices a bit easier
  • EnumCharField: the same, but for choices with a char key

django-forms-builder

A Django reusable app providing the ability for admin users to create their own forms

django-bfm

  • Multifile Uploads (Open File Dialog)
  • Live Upload Status report (Upload applet)
  • File browsing
  • Directory support
  • Core features has no dependencies (except for Django), lightweight
  • Looks like django admin (extends admin template)

django-custom-field

Allow end users to create easy (but slower to work with) fields attached to any Django model. Includes support so fields show up in the admin interface and helper functions that make it easy to access any custom fields programmatically.

django-wizard

allows views to be organized into steps for linear page flows

No comments: