Commit f7cb1e33 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Fix form class resolving

parent 48780c81
......@@ -167,7 +167,7 @@ class InvitationsBackend(ActivationBackend):
invitation = self.invitation
initial_data = self.get_signup_initial_data(provider)
prefix = 'Invited' if invitation else ''
main = provider.capitalize()
main = provider.capitalize() if provider == 'local' else 'ThirdParty'
suffix = 'UserCreationForm'
formclass = '%s%s%s' % (prefix, main, suffix)
return globals()[formclass](initial_data, instance=instance, request=self.request)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment