New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register user with form's save method, whenever possible #15
Conversation
Can you please fix this so Travis passes the tests on Django < 1.7. Thanks. I'll then take a closer look. At a quick glance the REGISTRATION_FORM changes look good. However, I'm not sure about how generally useful the INCLUDE_REGISTER_URL / INCLUDE_AUTH_URLS changes are, for those that need these they could be handled included in a custom url.conf. |
Hey, It seems there is no import_string (nor import_by_path) for Django < 1.5...weird. Would you be ok if I just copied that function to Regarding |
I succesfully used this pull request's code in my project for save first_name and last_name fields in registration form. |
django 1.5 compatibility issue
Sorry it's taken me a while to get back to reviewing this. It's a big commit so I'd like to look at it carefully. Are the urlconf defaults aligned to the current behaviour? |
I did not understand what you mean... The urlconf defaults behaves as it did before, by default. The new settings I included ( |
… into laginha-master Conflicts: registration/backends/simple/views.py registration/models.py Refs #15
Can you please also take a look at default/views.py. That is not using form.save(). Thanks. |
It is if form has a |
Nevermind. I think I was lacking caffeine yesterday. :) |
Hey,
In a nutshell, as I added to the
CHANGELOG
:INCLUDE_AUTH_URLS
) and register url (INCLUDE_REGISTER_URL
).REGISTRATION_FORM
.RegistrationForm
a subclass of Django'sUserCreationForm
save
method to create user instance, whenever form is a subclass of Django'sModelForm
.Basically I wanted to use your useful app in a project I'm working on, but with a few twists:
register/
url, because I have two distinct profiles each one with a different register form and view.ModelForm
, with logic in thesave
method, associated with a custom user with no username field.I've run the tests and everything is working. I've also updated the docs, version number and changelog.
Hope you approve my work.
If you have any doubt, please contact me and I'll try to explain things better.
DLM