#5749: Add field_name as a key on the _html_output dict
------------------------+---------------------------------------------------
Reporter:  SmileyChris  |       Owner:  nobody         
  Status:  new          |   Component:  django.newforms
 Version:  SVN          |    Keywords:                 
   Stage:  Unreviewed   |   Has_patch:  0              
------------------------+---------------------------------------------------
 Just a small extension which I have found useful.

 The use case is customising a field so that the row can be `id`ed. For
 example:
 {{{
 #!python
 class MyForm(Form):
     def as_p(self):
         return self._html_output(u'<p id="p_%(field_name)s">%(label)s
 %(field)s%(help_text)s</p>', u'%s', '</p>', u' %s', True)
 }}}

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

Reply via email to