Tutorial 01 __unicode__ step needs reload
|Reported by:||g4d||Owned by:||kkubasik|
|Severity:||Keywords:||Tutorial 01, Tutorial01, unicode, __unicode__, model, models kkmegapatch|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In going through Tutorial 01, there seems to be a small step missing after adding the unicode methods to polls.models.py.
After adding unicode methods to models.py and entering "Poll.objects.all()" in the shell, I got the same response as before adding unicode methods ( [<Poll: Poll object>] ). I figured that my new changes had to be reloaded. Not knowing any spiffy command for reloading, I closed and reopened the shell and imported my project again. When I then entered Poll.object.all() in the shell, I got the expected [<Poll: What's up?>].
In retrospect, I probably could have just re-entered the import. I'm brand new to Django and pretty new to Python as well, so I will not try to supply the proper solution.
Hope this helps!
Change History (9)
comment:1 Changed 7 years ago by kmtracey
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 7 years ago by jacob
- milestone set to 1.1
- Triage Stage changed from Unreviewed to Accepted
Changed 7 years ago by mboersma
comment:5 Changed 7 years ago by kkubasik
- Keywords kkmegapatch added
- Owner changed from nobody to kkubasik