tutorial01 missed step (poll save)
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When adding choices to the poll it is suggested that the choice can tell you its API:
>>> c = p.choice_set.create(choice_text='Just hacking again', votes=0) # Choice objects have API access to their related Poll objects. >>> c.poll <Poll: What's up?>
But that does not work - you must save the poll after adding the choices before it appears. Just add:
In there after the choice_set.create() call.