I noticed this today when writing some forms, and whipped up a quick
patch. It could probably use one or two more eyes to look at it. a) so
it doesn't get lost, b) to come up with some better variable names.

The problem is pretty simple, as_p, as_ul and as_table, don't include
an option to pass css classes into their fields. As a result it
impossibly to change the appearance of required fields.  My patch
simple adds a new label into the string that defines each row, creates
a css_classes list that stores each of the classes to be added to the
row delineator, and the concatenates them with spaces and dumps them
in.

~ Anders

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to