Boston Python Workshop/Saturday/Web app project: Difference between revisions

Line 279:
[<Poll: Poll object>]
 
Wait a minute. <Poll: Poll object> is, utterly, an utterly 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:
 
class Poll(models.Model):
Anonymous user