title: Redirecting user to profile after sign up
body: <p>I am overriding the sign up view in <code>allauth</code> by using my own. I can sign up and the user will be logged in, but I'd like to redirect the user to their profile page. I have an app called <code>profiles</code> that has a view called <code>Index</code> in the <code>profiles.urls</code> Index can take in 2 parameters, a slug (username) or a pk (id). After the user hits the sign up button and everything is valid, I want to redirect them to their profile page: <code>/profiles/{their username}</code> </p>
  
  <p><strong>profiles.urls</strong></p>
  
  <pre><code>app_name = 'profiles'
  
  urlpatterns = [
      url(r'^(?P&lt;pk&gt;\d+)/$', views.Index.as_view(), name='Index'),
      url(r'^(?P&lt;slug&gt;[\w_]+)/$', views.Index.as_view(), name='Index'),
  ]
  </code></pre>
  
  <p><strong>oauth.views</strong></p>
  
  <pre><code>class RegisterView(SignupView):
      form_class = RegisterForm
      template_name = 'oauth/auth_form.html'
  
      def form_valid(self, form):
          return redirect('profiles:Index', slug=form.username)
  </code></pre>
  
  <p>oauth.views is where I make my custom SignupView. Now when I try to sign up, I don't get redirected to the user's profile. Instead I get this error:</p>
  
  <pre><code>  File "C:\python3.6.3\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
      return handler(request, *args, **kwargs)
    File "C:\python3.6.3\lib\site-packages\allauth\account\views.py", line 102, in post
      response = self.form_valid(form)
    File "C:\Users\xx\PycharmProjects\examplesite\oauth\views.py", line 17, in form_valid
      return redirect('profiles:Index', slug=form.username)
  AttributeError: 'RegisterForm' object has no attribute 'username'
  </code></pre>
  
  <p>How do I make it so that the user is redirected to their profile based on the username they selected?</p>