#3313: decouple BoundField from BaseForm._html_output
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian Type: defect | Status: new Priority: normal | Milestone: Component: django.newforms | Version: Severity: normal | Keywords: BoundField, BaseForm, newforms
-------------------------------------+--------------------------------------
*[http://code.djangoproject.com/browser/django/trunk/django/newforms/forms.py
newforms.forms]

 As mentioned in *[http://tinyurl.com/2xrvb9 this  message],  the
preferred way to mark fields required would be to use CSS.  From what I
can see, the  simplest way to do this would be to  allow  the user to
override the label_tag function in {{{BoundField}}}. Doing this, however,
would necessitate having to rewrite the entire _html_output function in
{{{BaseForm}}}.

In order to avoid this, I propose having that function call
{{{BaseForm.__get_item__ so}}} that if you wanted to generate your own
customized label tags, you would only need to override
{{{BaseForm.__get_item__ and BoundField.label_tag}}} (smaller changes than
{{{BaseForm._html_output}}})

--
Ticket URL: <http://code.djangoproject.com/ticket/3313>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to