Opened 18 years ago
Closed 18 years ago
#2502 closed defect (fixed)
Permalink function ignores keyword args
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | |
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
Looks like a typo in permalink():
return reverse(bits[0], None, *bits[1:2])
Should surely be:
return reverse(bits[0], None, *bits[1:3])
as bits
is meant to be a tuple (viewname, argslist, kwargsdict).
Note:
See TracTickets
for help on using tickets.
(In [3544]) Fixed #2502 -- Fixed typo in db.models.permalink function. Thanks, adurdin@…