#2077 closed defect (fixed)
[PATCH] Update model examples __repr__ page to __str__
Reported by: | 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__)
- apply patch
- svn rename of tests/modeltests/repr to tests/modeltests/str as needed/decided.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | models.py.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for repr/models.py to fix the repr calls to str