Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 20:41, 5 March 2011
, 13 years ago→Playing with the API
Line 279:
[<Poll: Poll object>]
Wait a minute. <Poll: Poll object> is an utterly unhelpful representation of this object. Let's fix that by editing the polls model
Use your '''text editor''' to open the polls/models.py file and adding a __unicode__() method to both Poll and Choice:
class Poll(models.Model):
|