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

Use an identity decorator if django.utils.deconstruct cannot be imported #71

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

omarali
Copy link
Contributor

@omarali omarali commented Dec 28, 2016

This import line was added by the following commit: d4a6e9e

On older versions of django that do not provide django.utils.deconstruct, we get an ImportError. The proposed solution is to use an identity decorator if the current django version does not provide django.utils.deconstruct.

@einarf
Copy link
Contributor

einarf commented Dec 28, 2016

Looks good to me. I guess this is for pre django 1.7 versions.

@dennisv dennisv merged commit 48bb0f8 into dennisv:master Jan 9, 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