Author: adrian
Date: 2009-02-21 02:45:47 -0600 (Sat, 21 Feb 2009)
New Revision: 9853

Modified:
   django/trunk/docs/ref/forms/fields.txt
   django/trunk/docs/ref/forms/widgets.txt
Log:
Fixed #10135 -- Added some import statements to docs/ref/forms/fields.txt and 
docs/ref/forms/widgets.txt to help people understand where the code lives. 
Thanks, Rob Hudson

Modified: django/trunk/docs/ref/forms/fields.txt
===================================================================
--- django/trunk/docs/ref/forms/fields.txt      2009-02-21 08:43:35 UTC (rev 
9852)
+++ django/trunk/docs/ref/forms/fields.txt      2009-02-21 08:45:47 UTC (rev 
9853)
@@ -23,6 +23,7 @@
 a single argument and either raises a ``django.forms.ValidationError``
 exception or returns the clean value::
 
+    >>> from django import forms
     >>> f = forms.EmailField()
     >>> f.clean('[email protected]')
     u'[email protected]'

Modified: django/trunk/docs/ref/forms/widgets.txt
===================================================================
--- django/trunk/docs/ref/forms/widgets.txt     2009-02-21 08:43:35 UTC (rev 
9852)
+++ django/trunk/docs/ref/forms/widgets.txt     2009-02-21 08:45:47 UTC (rev 
9853)
@@ -107,6 +107,8 @@
 However, if you want to use a different widget for a field, you can -
 just use the 'widget' argument on the field definition. For example::
 
+    from django import forms
+
     class CommentForm(forms.Form):
         name = forms.CharField()
         url = forms.URLField()


--~--~---------~--~----~------------~-------~--~----~
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