Opened 13 years ago

Closed 13 years ago

#18253 closed Uncategorized (worksforme)

error in tutorial

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/1.3/intro/tutorial02/

def unicode(self):

return self.question

should probably read

def unicode(self):

return self.choice

see here
http://stackoverflow.com/questions/2811075/model-django-poll

Change History (1)

comment:1 by Moritz Sichert, 13 years ago

Resolution: worksforme
Status: newclosed

In tutorial02 there is no unicode method.

In tutorial01 there are two unicode methods for each Poll and Choice but they seem to be correct.

Note: See TracTickets for help on using tickets.
Back to Top