title: django.shortcuts.redirect with arguments
body: <p>I am trying to redirect to a URL with an argument.
  part of views.py</p>
  
  <pre><code>def membership(request):
      errors = []
      members = Member.objects.all()
      ...
          if request.POST.get('subject', '') == "member_details":
              member = members.filter(id = request.POST.get('member', ''))
              return redirect("/membership/details/", m = member)
      ...
  
      return render(request, "membership.html", {"errors": errors, 'members': members})
  </code></pre>
  
  <p>I need to redirect to "membership/details/" but with "member" as argument or at least members ID.</p>
  
  <p>Here is a part of my url.py:</p>
  
  <pre><code>url(r'^admin/', include(admin.site.urls)),
  url(r'^input/book/', 'library_app.views.input_book'),
  url(r'^membership/$', 'library_app.views.membership'),
  url(r'^membership/details/', 'library_app.views.member_details'),
  url(r'^$', 'library_app.views.main'),
  </code></pre>
  
  <p>and the "member_details" part of my views.py:</p>
  
  <pre><code>def member_details(request, m="doesn't work"):
      error = []
  
      if request.method == "POST":
          pass
  
      return render(request, "member_details.html", {'m': m})
  </code></pre>
  
  <h2>Thanks for any help!</h2>