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

Fixing mgmt commands for Django version compatibility #19

Merged
merged 4 commits into from Mar 1, 2016

Conversation

grahamu
Copy link
Contributor

@grahamu grahamu commented Feb 28, 2016

Testing this proposed fix via CI.
#18

@grahamu
Copy link
Contributor Author

grahamu commented Feb 28, 2016

As seen in https://travis-ci.org/pinax/pinax-invitations/builds/112465540, some tests fail when invoked with Django master branch. As late as Django 1.9.x, there was some compatibility code found here: https://github.com/django/django/blob/stable/1.9.x/django/core/management/base.py#L307.

In Django master this code no longer exists, presumably as part of planned deprecation: https://github.com/django/django/blob/master/django/core/management/base.py#L263.

This PR fixes the parsing of these command arguments by both Django 1.8.x and 1.9.x, but when Django 1.10 is released we will need an entirely different fix in order to maintain backwards compatibility with Django v1.7.x.

@paltman
Copy link
Member

paltman commented Feb 28, 2016

Not sure if it matters but we can drop 1.7 support

@grahamu
Copy link
Contributor Author

grahamu commented Feb 29, 2016

Thanks for your note about dropping Django v1.7 support @paltman. It does make a big difference to the code. I will update accordingly and that will remove the problem with compatibility with upcoming v1.10.

Does that Django compatibility change apply to all pinax apps? I'm happy to update tox.ini for pinax-invitations and pinax-documents.

Dropping Django v1.7 support.
Using "optparse" handling for mgmt command arguments.
Adding docstrings for model methods.

fixes pinax#18
@ossanna16
Copy link
Contributor

@paltman Can this be merged?

paltman added a commit that referenced this pull request Mar 1, 2016
Fixing mgmt commands for Django version compatibility
@paltman paltman merged commit 6d61160 into pinax:master Mar 1, 2016
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.

None yet

3 participants