django-allauth: Multiple signup forms

313 views
Skip to first unread message

Franco Alarcon

unread,
Oct 29, 2013, 9:28:17 AM10/29/13
to django...@googlegroups.com
Greetings everyone,
  I know that maybe this is not the best place to ask, but I already asked in the django-alluth forum without luck, so here I'm.
  I'm developing an application in which exists two kind of user and I have to show a different singup form for each one. The first thing that I thought was subclass the SignupView and replace the SignupForm with my custom form, then in the urls.py create 2 urls where each one points towards my custom SingupViews and it's done. Sadly i couldn't be more wrong, because when the user is not logged in it is redirected to /accounts/login the to the provider, for instance facebook and then back to /accounts/signup/ and not to my SignupView. I tried changing the "next" url parameter without luck. So anybody knows how i could have two different signup forms one for each kind of user?

Thanks in advance ;)
Reply all
Reply to author
Forward
0 new messages