Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16280 closed Cleanup/optimization (fixed)

documentation for reverse() should include positional/keyword conflict

Reported by: bhayes@… Owned by: paulcwatts
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Ticket #12946 was resolved in [12652] by documenting the behavior of {% url %} tags containing both positional and keyword arguments, and calling out in the documentation that this is not allowed.

It would be nice if this same note were added to the documentation of reverse() in https://docs.djangoproject.com/en/dev/topics/http/urls/#reverse as well.

Attachments (1)

16280.diff (617 bytes) - added by paulcwatts 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:2 Changed 5 years ago by paulcwatts

Owner: changed from nobody to paulcwatts

Changed 5 years ago by paulcwatts

Attachment: 16280.diff added

comment:3 Changed 5 years ago by paulcwatts

Has patch: set

comment:4 Changed 5 years ago by Adam Nelson

Triage Stage: AcceptedReady for checkin

Looks good.

comment:5 Changed 5 years ago by Alex Gaynor

Resolution: fixed
Status: newclosed

In [16780]:

Fixed #16280. Document that both args and kwargs cannot be passed to reverse at the same time.

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