#3313: decouple BoundField from BaseForm._html_output
----------------------------------------------+-----------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: closed | Component:
django.newforms
Version: | Resolution: wontfix
Keywords: BoundField, BaseForm, newforms | Stage: Design
decision needed
Has_patch: 1 | Needs_docs: 1
Needs_tests: 1 | Needs_better_patch: 0
----------------------------------------------+-----------------------------
Changes (by adrian):
* status: new => closed
* resolution: => wontfix
Comment:
There's a problem with this patch -- {{{BoundField}}} appears more than
once in the implementation of {{{Form}}}, so being able to override
{{{__getitem__}}} wouldn't catch the other appearance. (Specifically,
you'd have to override {{{__iter__}}} too.
But even that strikes me as a bit strange. What you really want is to
specify the class of {{{BoundField}}} to use. I played with adding a
{{{bound_field_class}}} argument to {{{BaseForm}}}, but that's obscure.
This whole thing smells like the wrong solution for your problem, which is
that you want to display a custom CSS around {{{<label>}}} elements in
your form. Let's come at it a different way. If you have any ideas, please
open a new ticket with suggestions.
--
Ticket URL: <http://code.djangoproject.com/ticket/3313#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---