KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to reverse a named URL and include a querystring in it. Basically, I've modified the login function, and I want to send ?next= in it. Here's what I'm doing now: reverse(name) + "?next=" + reverse(redirect) Here's what I'd like to do: reverse(name, kwargs = { 'next':reverse(redirect) } ) My URL for the login page (just as an example) looks like this: url(r'^login/', custom_login, name = 'login'), So how do I modify this whole thing (or call it) to include the next without having to concatenate it? It feels like an iffy solution at best.
Tags (comma-separated)
Save Edits
Cancel