#6067: Small addition to newForms documentation regarding required fields in
templates
---------------------------------------------------+------------------------
Reporter:  stp2007 <[EMAIL PROTECTED]>  |       Owner:  nobody         
  Status:  new                                     |   Component:  
django.newforms
 Version:  SVN                                     |    Keywords:  
documentation  
   Stage:  Unreviewed                              |   Has_patch:  0            
  
---------------------------------------------------+------------------------
 In the documentation:
 http://www.djangoproject.com/documentation/newforms/#highlighting-
 required-fields-in-templates

 It might be useful to give an example of how to check if a field is
 required when accessing a form field directly. This would be in addition
 to the existing example which is demonstrating use when iterating over a
 form.

 I'd suggest an example such as {% if form.fieldName.field.required %}*{%
 endif %}

 Thanks

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