Skip to content

Move django.contrib.auth import out of compat. (fixes #5564) #5566

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

Closed
wants to merge 1 commit into from

Conversation

xordoquy
Copy link
Collaborator

@xordoquy xordoquy commented Nov 6, 2017

Fixed some regressions where compat was imported during app loading and
led to importing django.contrib.auth.models which ended in a
AppRegistryNotReady exception.

Fixed some regressions where compat was imported during app loading and
led to importing django.contrib.auth.models which ended in a
`AppRegistryNotReady` exception.
Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious is it possible to test this change?

@rpkilby
Copy link
Member

rpkilby commented Nov 6, 2017

I'm currently working on that.

@xordoquy
Copy link
Collaborator Author

xordoquy commented Nov 6, 2017

I'm afraid it's going to be hard to add a test case. We could have done it if we'd had a proper test project with a separated application in which could have its __init__.py file importing the rest_framework.serializers - for example.
As it is now, it would likely failed if we'd do that in test/__init__.py since django wouldn't be configured at that point.

@rpkilby
Copy link
Member

rpkilby commented Nov 6, 2017

Closing in favor of #5567 (cherry picked the fix).

@rpkilby rpkilby closed this Nov 6, 2017
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy