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

Fix process_field so that it works for m2m fields in Django 2.0 #107

Closed
wants to merge 1 commit into from

Conversation

volrath
Copy link

@volrath volrath commented Feb 14, 2018

Support for direct assignment in manytomany fields was removed in Django 2.0 (see: https://docs.djangoproject.com/en/2.0/releases/2.0/#features-removed-in-2-0).

This commit adds an extra param to process_field to indicate that the field being processed is a m2m and assignment should be handled through .set instead.

Support for direct assignment in manytomany fields was removed in Django
2.0 (see:
https://docs.djangoproject.com/en/2.0/releases/2.0/#features-removed-in-2-0).
This commit adds an extra param to `process_field` to indicate that the field
being processed is a m2m and assignment should be handled through `.set`
instead.
Copy link

@asyncmind0 asyncmind0 left a comment

Choose a reason for hiding this comment

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

works for me

@panchr
Copy link

panchr commented Apr 23, 2018

While waiting for this to be merged, I found this library a pretty easy drop-in replacement: https://model-mommy.readthedocs.io/en/latest/index.html.

@rhelms
Copy link

rhelms commented May 21, 2018

Perhaps the tox matrix needs to updated to include Django 1.10, 1.11, and 2.0.
And perhaps a further clean up to only bother with Django 1.11 under Python 2.7, and remove support for Python 3.3 since that is now EOL.

This PR is not likely to be merged while tests are failing, even if it is because the travis environment is not supporting those versions of python.

@zodman
Copy link

zodman commented Aug 24, 2018

i prefer PR #110 fix the gis module too

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.

5 participants