Opened 7 years ago

Closed 7 years ago

#28910 closed New feature (duplicate)

Add a way to add query strings to reverse_lazy()

Reported by: Sina Owned by: Sina
Component: Core (URLs) Version: 2.0
Severity: Normal Keywords: urls
Cc: sharifzadesina@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi
How can I add query strings to a lazy url reverser?
some thing like this:

reverse_lazy('home', query={test: 'hi'})

so this will compile to: /home?test=hi
This is a MUST have feature at least for lazy reversers I don't know why django doesn't have this!!!

Change History (2)

comment:1 by Sina, 7 years ago

Owner: changed from nobody to Sina
Status: newassigned

comment:2 by Tim Graham, 7 years ago

Resolution: duplicate
Status: assignedclosed
Summary: Adding query strings to django.urls.reverse_lazy?Add a way to add query strings to reverse_lazy()

Duplicate of #25582.

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