mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Change adding extra user data to on a signal instead.
Not sure if this data is clean or not.
This commit is contained in:
@@ -33,18 +33,6 @@ def login(request, **kwargs):
|
||||
|
||||
return login(request, authentication_form=forms.LoginForm)
|
||||
|
||||
|
||||
class ProfileRegistrationView(RegistrationView):
|
||||
form_class = forms.ProfileRegistrationFormUniqueEmail
|
||||
|
||||
def register(self, request, **form):
|
||||
model = models.Profile()
|
||||
for (key,value) in form.items():
|
||||
setattr(model, key, value)
|
||||
model.set_password(form['password1'])
|
||||
model.is_active = False
|
||||
return model.save()
|
||||
|
||||
"""
|
||||
Called from a modal window (e.g. when an item is submitted to an event/invoice).
|
||||
May optionally also include some javascript in a success message to cause a load of
|
||||
|
||||
Reference in New Issue
Block a user