-
Notifications
You must be signed in to change notification settings - Fork 563
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
Doesn't support Django 1.5 custom authenication #145
Comments
Sounds like the right thing to do, just keeping in mind that older Django versions do not have |
That would work. I have tested it putting it just in the model's module but having issues with South migrations that still point to auth.User |
Oh right, that's not ideal. See also this response: You could alter all the migrations to use |
can we have a fix for this? everybody is using django 1.5 now.... it's keep the new people from using it |
@wenzhixue there are no known issues with Django 1.5, except that you cannot use |
…oreignKey fields and South migrations. Backwards-compatible.
@nemith and @wenzhixue could you guys test this commit in your scenarios? Please note that changing AUTH_USER_MODEL in an existing project is highly discouraged. The best way to go is to have it set before the first syncdb and migrate. |
Please watch the following bug on Django to see if account handling will be made possible for custom user models: https://code.djangoproject.com/ticket/20086 If they do not allow custom user models in django.contrib.auth.forms UserCreateForm and UserChangeForm, then I'm afraid it will not be possible to support. |
I'm closing this as I don't really think you guys are testing it, and since the upstream ticket for UserCreateForm and UserChangeForm has been closed as a wont-fix. |
My project got put on hold, so I haven't been able to test. I take it that it is assumed to work now? |
Yes, it's almost working, but account handling does not work, i.e. the sign up page is broken, but I take it most projects have their own if they're also doing custom user models :) |
I'll amend that a bit: It works just fine, but the pre-shipped sign up function which is absolutely non-essential for someone using a custom user model, does not work :) |
With Django 1.5 we have the option to specify a customer User model to use for Django authentication.
Need to update / check for Django 1.5 and use settings.AUTH_USER_MODEL in place of auth.User
The text was updated successfully, but these errors were encountered: