#13257: label_tag syntax check should also check for blank fields and show no
syntax
-------------------------------------------+--------------------------------
          Reporter:  jkatzer               |         Owner:  nobody   
            Status:  closed                |     Milestone:           
         Component:  django.contrib.admin  |       Version:  SVN      
        Resolution:  wontfix               |      Keywords:  label_tag
             Stage:  Unreviewed            |     Has_patch:  1        
        Needs_docs:  0                     |   Needs_tests:  1        
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by russellm):

 Lets try that again:
 {{{
 >>> class MyForm(forms.Form):
 ...     f1 = forms.IntegerField()
 ...     f2 = forms.IntegerField(label='test field')
 ...     f3 = forms.IntegerField(label='')

 >>> f = MyForm()
 >>> print f.as_p()
 <p><label for="id_f1">F1:</label> <input type="text" name="f1" id="id_f1"
 /></p>
 <p><label for="id_f2">test field:</label> <input type="text" name="f2"
 id="id_f2" /></p>
 <p> <input type="text" name="f3" id="id_f3" /></p>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13257#comment:5>
Django <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