﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1599	[magic-removal] tutorial01.txt: bugs in example of using the shell	anonymous	Jacob	"Line 508 and following:

>>> p.choice_set.add(choice='Not much', votes=0)

Gives:
Traceback (most recent call last):
  File ""<console>"", line 1, in ?
TypeError: add() got an unexpected keyword argument 'choice'

is wrong. Should probably be
>>> p.choice_set.add(Choice(choice='Not much', votes=0))


>>> c = p.choice_set.add(choice='Just hacking again', votes=0)
>>> c.poll

Gives the error:
Traceback (most recent call last):
  File ""<console>"", line 1, in ?
AttributeError: 'QuerySet' object has no attribute 'poll'

Even if changed to 
>> c = p.choice_set.add(Choice(choice='Just hacking again', votes=0))[0]
>>> c.poll

The error is
Traceback (most recent call last):
  File ""<console>"", line 1, in ?
AttributeError: 'NoneType' object has no attribute 'poll'

Maybe add does not return a value??"	defect	closed	Documentation		critical	fixed			Unreviewed	0	0	0	0	0	0
