Opened 18 years ago

Closed 18 years ago

#2502 closed defect (fixed)

Permalink function ignores keyword args

Reported by: adurdin@… 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).

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3544]) Fixed #2502 -- Fixed typo in db.models.permalink function. Thanks, adurdin@…

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