Opened 3 years ago

Closed 3 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 Changed 3 years ago by moritzs

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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