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 field.foreign_related_fields if >= dj1.9 #45

Closed
wants to merge 2 commits into from

Conversation

MikeAmy
Copy link

@MikeAmy MikeAmy commented Jan 4, 2016

API change in django 1.9

@lampslave
Copy link

related_field was renamed to target_field in 1.9, however foreign_related_fields[0] is acceptable for any version (1.7, 1.8, 1.9), so version checking is unnecessary here. And I'm afraid that all of these is not acceptable for RelatedField, only for ForeignKey :(

@lampslave
Copy link

This PR can be closed, all changes were implemented in merged #46.

@GeyseR GeyseR closed this Apr 12, 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