#19311: "c.poll" did not work at the tutorial 01 (last example on the page)
-------------------------------+--------------------
     Reporter:  vijayky@…      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 URL: https://docs.djangoproject.com/en/1.4/intro/tutorial01/

 --------------------
 '''Documentation:'''

 >>> c = p.choice_set.create(choice='Just hacking again', votes=0)
 # Choice objects have API access to their related Poll objects.
 >>> c.poll
 <Poll: What's up?>

 --------------------
 '''Interactive Output:'''

 >>> c = p.choice_set.create(choice='Just hacking again', votes=0)
 >>> c.poll
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
 AttributeError: 'Choice' object has no attribute 'poll'


 --------------------
 '''What Works'''

 >>> c.question
 <Poll: What's up?>

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19311>
Django <https://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to