Missing step in tutorial
|Reported by:||leftcase||Owned by:||elbarto|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This step could be seen as being confusing:
Wait a minute. <Poll: Poll object> is, utterly, an unhelpful representation of this object. Let's fix that by editing the polls model (in the polls/models.py file) and adding a unicode() method to both Poll and Choice:
If you try to do this step by step you will find that editing the models.py file as suggested and retrying:
[<Poll: Poll object>]
It might be an idea to add a step instructing the user to start a new Python interactive shell by exiting and then running python manage.py shell again. It seems to me that if you don't do this first then Poll.objects.all() will always return [<Poll: Poll object>] no matter what you change in the models.py file until you start a new interactive shell.
This might seem obvious but could trip up a new user.
Change History (3)
comment:1 Changed 6 years ago by kmtracey
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted