title: How to redirect to another url after sending a POST request to admin:auth_user_password_change in Django?
body: <p>I'm using the built in django admin site for the application's admin site in a sense that <code>POST</code> requests are built identically to its equivalent admin site, and sent to the same <code>url</code>s. So it's like the application admin site is just a wrapper for the admin site.</p>
  <p>My problem is, I don't know how to redirect back to <code>url</code> where it was originally posted. Currently it redirects to the Change User admin page. I'd like it to redirect back to the page.</p>
  <p>Here's my <code>change-password-template.html</code>:</p>
  <pre><code>&lt;div&gt;
      &lt;form action=&quot;{% url 'admin:auth_user_password_change' user.pk %}&quot; method=&quot;post&quot; id=&quot;change-password-form&quot;&gt;
      {% csrf_token %}
      # ... here goes the password fields
      &lt;input type=&quot;submit&quot; value=&quot;Change password&quot;&gt;
          &lt;/div&gt;
              &lt;input type=&quot;hidden&quot; name=&quot;next&quot; value=&quot;{% url 'change_password' id=user.pk%}&quot;&gt; # my attempt at trying to redirect back to the original webpage
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  <p>So, it <em>does</em> correctly post to <code>admin/auth/user/{{user.pk}}/password/</code> but instead of redirecting <em>back</em> to the that page it instead redirects to: <code>admin/auth/user/{{user.pk}}/change/</code>. How can I make it do so?</p>