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

Pluggable user support #101

Closed
wants to merge 4 commits into from
Closed

Pluggable user support #101

wants to merge 4 commits into from

Conversation

dokterbob
Copy link
Collaborator

Implements #62. Supercedes #93.

Please provide some feedback on this for usage with an actual custom user model - there seems no proper way to user custom user models in automated tests.

@dokterbob dokterbob mentioned this pull request Nov 14, 2013
@dokterbob
Copy link
Collaborator Author

@remarkablerocket, I am planning to merge your implementation of a custom user model. Would be nice if you could test this branch with your custom user model implementaton to assure stability.

Thanks!

@dokterbob
Copy link
Collaborator Author

@s1n4 As the migration in your patch seemed to depend on your particular user model I have chosen to use @remarkablerocket's implementation instead. However, it would be really great if you could give this branch a try so we can see whether it works with your particular user model.

Thanks!

@dokterbob
Copy link
Collaborator Author

Hey @Burakk, we now have a pull request for custom user model support - but it requires more through (manual) testing. Would be great if you could lend a hand with that - would be great to be able to push out a new (poin) release today or tomorrow.

Thanks!

@sinasamavati
Copy link

@dokterbob sorry for replying too late. actually, I wasn't sure about the migration, that it would work for everyone or not, and unfortunately I've had no time to check it out.

alright, I'm gonna check out @remarkablerocket's implementation as soon as possible.

Thanks

@danielpatrickdotdev
Copy link
Contributor

Sorry for not responding sooner, @dokterbob. I never really tested the solution thoroughly at the time.

From a quick investigation it appears to be working with South 0.8.2 but broken in South 0.8.3. with South 0.8.3 I'm getting the following error when trying to migrate for the first time:

django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'userprofile.CustomUser' that has not been installed

@dokterbob
Copy link
Collaborator Author

Thanks for the feedback!

|django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'userprofile.CustomUser' that has not been installed
Just checking: is userprofiles in INSTALLED_APPS?

@danielpatrickdotdev
Copy link
Contributor

That would be embarrassing, but yes it is. Otherwise it wouldn't have worked with the other version of South.

@dokterbob
Copy link
Collaborator Author

Embarrassing stuff happens all the time, at least for me it does.

Will look into this issue tomorrow or perhaps this weekend. Hope to be able to push out a release after the weekend.

Thanks again for the feedback!

@dokterbob
Copy link
Collaborator Author

@remarkablerocket I've implemented the suggestions documented here. Would be great to get some feedback on this one.

Thanks!

@dokterbob
Copy link
Collaborator Author

Note: I've succesfully run migrations with South 0.8.3 and Django's normal user model.

@dokterbob
Copy link
Collaborator Author

@s1n4 @remarkablerocket @Burakk After a lot of turmoil it turns out there is a bug in South 0.8.3.

I have currently updated migrations using @benjaoming's script which closely resembles kevindias' recommended practises. (Also I have experimented around a bit with lazy User' objects and such, to no avail.)

Eventually I have built in an explicit exception when South 0.8.3 is installed, recommending users to downgrade.

My question to you is as follows: should I

  1. wait for South to be fixed in 0.8.4 and consequently postpone custom user model support to 0.5.2 or;
  2. release 0.5.1 with this known South issue and hope not too many people have upgraded South yet?

All feedback welcome. In any case: thanks so much for thinking along, helping with testing and such.

@sinasamavati
Copy link

I think third-party issues are unrelated to a project. however, waiting for South to be fixed wouldn't be bad.

Thanks.

@jhgg
Copy link

jhgg commented Nov 21, 2013

Fixed in latest south 0.8.4.

@dokterbob dokterbob closed this Nov 21, 2013
@dokterbob dokterbob deleted the pluggable_user_support branch January 5, 2016 14:40
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.

4 participants