django-dataforms/django-dataforms — pull request #7 by chromano (2012-02-11 04:27:11+00:00)
Title: Some improvements to dataforms

Hi,

Eric Liu and I worked on some cool features that we'd like to see merged into the original branch of the project. The features are:

1 - Support for specifying an "initial" parameter to create_collection and create_form, this can be thought as the same behavior of specifying initial data for a django form.
2 - Enable form fields to have a "placeholder" attribute defined; you know, the HTML5 placeholder attribute :)
3 - Support for a "virtual" (in the sense that it isn't going to be send as a parameter to the field itself, instead it is just used by dataforms itself) field attribute "blank_choice_label", which is used to change the default option "--------" on select fields (a use case is when you have a "State" dropdown and you want the default option to be "[Select State]").

Please, let me know what you think.

Thanks!