Opened 16 years ago
Closed 15 years ago
#9326 closed (fixed)
permalink decorator used in doc and then pre-decorator method used without notice.
Reported by: | bartek | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Just a small thing but..
Page: http://docs.djangoproject.com/en/dev/ref/models/instances/#django.db.models.permalink
Confused me for a bit because there is no mention as to why all of a sudden the doc uses the pre-decorator method of:
get_absolute_url = permalink(get_absolute_url)
Would be nice to have it fully switched to using a decorator or put a note "For python 2.3 or earlier, use this:"
I hope this hasn't been submitted before :)
Attachments (1)
Change History (4)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 15 years ago
comment:2 by , 15 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Version: | 1.0 → SVN |
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
since python 2.3 isn't support in the development version, this patch converts that instance to the decorator that's used everywhere else