Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2077 closed defect (fixed)

[PATCH] Update model examples __repr__ page to __str__

Reported by: asmodai@… Owned by: Jacob
Component: Documentation Version: dev
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

http://www.djangoproject.com/documentation/models/ has a page http://www.djangoproject.com/documentation/models/repr/ which should be moved to str and have the following patch applied. (Per http://code.djangoproject.com/wiki/RemovingTheMagic#a__repr__replacedby__str__)

  1. apply patch
  2. svn rename of tests/modeltests/repr to tests/modeltests/str as needed/decided.

Attachments (1)

models.py.diff (881 bytes ) - added by asmodai@… 18 years ago.
Patch for repr/models.py to fix the repr calls to str

Download all attachments as: .zip

Change History (2)

by asmodai@…, 18 years ago

Attachment: models.py.diff added

Patch for repr/models.py to fix the repr calls to str

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3072]) Fixed #2077 -- Renamed 'repr' model tests to 'str'

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