Django

Code

Ticket #2077 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Update model examples __repr__ page to __str__

Reported by: asmodai@in-nomine.org Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

models.py.diff (0.9 kB) - added by asmodai@in-nomine.org on 06/03/06 16:09:04.
Patch for repr/models.py to fix the repr calls to str

Change History

06/03/06 16:09:04 changed by asmodai@in-nomine.org

  • attachment models.py.diff added.

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

06/03/06 17:14:05 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2077 ([PATCH] Update model examples __repr__ page to __str__)




Change Properties
Action