Skip to content
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

Changes to be compatible with django 1.5. custom user model #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Changes to be compatible with django 1.5. custom user model #180

wants to merge 2 commits into from

Conversation

katomaso
Copy link

@katomaso katomaso commented Apr 9, 2013

Hi, I have made new branch with clean commit history. I think that this is really good idea and necessary in order to remain compatible with django 1.5. This pull request solves problems with registering custom user model, which is available since django 1.5.

There are two new settings variables.

SOCIALREGISTRATION_USER_FUNCTION which points to the new-type function. The function fills up necessary fields in the user model and returns tuple: (user, profile)

SOCIALREGISTRATION_SEAMLESS_SETUP is just rename for SOCIALREGISTRATION_GENERATE_USERNAME which does not make sense if/when the old function will be removed. Both variables are kept and used as dispatcher.

The change is backward compatible.

SOCIALREGISTRATION_USER_FUNCTION which points to the new-type function. The function fills up necessary fields in the user
model and returns tuple: user, profile

SOCIALREGISTRATION_SEAMLESS_SETUP is just rename for SOCIALREGISTRATION_GENERATE_USERNAME which does not make sense if/when
the old function will be removed. Both variables are kept and used as dispatcher.

Changes are backward compatible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant