title: Django's AUTH_PROFILE_MODULE changing the login success url?
body: <p><strong>settings.py</strong></p>
  
  <pre><code>AUTH_USER_MODEL = "app_registration.MyUser"
  AUTH_PROFILE_MODULE = 'app_registration.MyUserProfile'
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class MyUserProfile(models.Model):
      user = models.ForeignKey(MyUser, unique=True)
      ...
      MyUser.profile = property(lambda u: MyUserProfile.objects.get_or_create(user=u)[0])
  </code></pre>
  
  <p><strong>login.html</strong></p>
  
  <pre><code>&lt;form id="login_form" method="post" action="."&gt;
  ....
  &lt;input type="hidden" name="next" value="" /&gt;
  &lt;input type="submit" value="LogIn" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>So I've done this to create MyUserProfile model for my custom MyUser model.
  Everything works fine, except for that when I login(localhost/accounts/login), the url is redirected to <code>htp://localhost:9999/accounts/profile</code> instead of the index page as I specified in the form's hidden input.</p>
  
  <p>Where is this redirect url defined..?? </p>