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

Fixed #408 - used remote_field instead of deprecated rel #409

Merged
merged 2 commits into from
Jan 20, 2017

Conversation

djk2
Copy link
Contributor

@djk2 djk2 commented Jan 20, 2017

No description provided.

@@ -1,2 +1,2 @@
-r common.pip
http://github.com/django/django/tarball/master
https://github.com/django/django/archive/1.11a1.zip
Copy link
Owner

Choose a reason for hiding this comment

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

Is this intentional? Because this will not continue to be the django development version.

Copy link
Contributor Author

@djk2 djk2 Jan 20, 2017

Choose a reason for hiding this comment

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

Yes, this is intentional.
In tox.ini in section [testenv:docs] are installed requirements from /requirements/common.pip and now is not working for master because, currently master is a Django 2.0.
Section for documentation must be tested with python 2.7 and Django < 2.0.

I think that requirements/django-dev.pip and tests for documentation must be changed in future.
Maybe you have any suggestions how to change it?

rel = getattr(field, 'remote_field', None)
model = getattr(rel, 'model', model)
else:
# Since django 1.9 `rel` attribute was replaced by `remote_field`
Copy link
Owner

Choose a reason for hiding this comment

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

Can you change this comment in such a way that when we remove support for the last version this shim is intended for we only have to look for the version number we are removing support for?

@jieter
Copy link
Owner

jieter commented Jan 20, 2017

Thanks for the pull, looks good. I tried doing it by testing for field.rel, which triggers the deprecation warning again.

@djk2
Copy link
Contributor Author

djk2 commented Jan 20, 2017

I also cleaned tox.ini and travis.yml files because there was few mistakes.

@jieter jieter merged commit 20c187b into jieter:master Jan 20, 2017
@jieter
Copy link
Owner

jieter commented Jan 20, 2017

Merged, thanks!

@djk2 djk2 deleted the issues-408 branch January 20, 2017 15:03
@jieter
Copy link
Owner

jieter commented Jan 20, 2017

released 1.3.0

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.

2 participants