Tutorial 01 __unicode__ step needs reload
|Reported by:||g4d||Owned by:||Kevin Kubasik|
|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:5 Changed 8 years ago by
|Owner:||changed from nobody to Kevin Kubasik|