django-autofixture icon indicating copy to clipboard operation
django-autofixture copied to clipboard

Error with Django 2: TypeError: Direct assignment to the forward side of a many-to-many set is prohibited.

Open davethecipo opened this issue 6 years ago • 3 comments

Hi, I'm very new to Django and to this plugin too, so please be patient.

I wanted to report this error when using the package with Django 2. I have a minimal working example here. The error can be reproduced following these steps

git clone https://github.com/davethecipo/autofixture-django2-bug.git
cd autofixture-django2-bug
python3 -m venv venv35
## activate virtual environment, then run
cd project
pip install -r requirements.txt
./run.sh

davethecipo avatar Jan 10 '18 17:01 davethecipo

(Sorry, misclicked and deleted.)

Probably related to #103.

erayerdin avatar Mar 07 '18 20:03 erayerdin

#107 fixes this - I've created a subclass of AutoFixture with those changes in the meantime. It seems like the CI failures for #107 are mostly build issues with Travis' change to the build agents. I've had a ton of issues with them removing certain python versions from the base image.

jamiecounsell avatar Mar 31 '18 20:03 jamiecounsell

Maybe this could help you: https://stackoverflow.com/questions/50015204/direct-assignment-to-the-forward-side-of-a-many-to-many-set-is-prohibited-use-e?noredirect=1&lq=1

Scharfsinnig avatar Aug 31 '18 01:08 Scharfsinnig