After creating a program in Windows 10 and verifying its operation, Ubuntu 18 writes the same thing.It works fine with Windows works fine.
The model containing the ManyToManyField goes into DB, but does not contain data from the intermediate table.
The error is as follows:
AttributeError at/seisan/parts_s_create/
Cannot set values on a ManyToManyField which specifications an intermediary model.Useisan.MaterialPartsRelation's Manager installed
Request Method: POST
Django Version—2
I found the next page.A similar error appears to be occurring.
According to this article, it seems that you need to explicitly create an intermediate model.
from datetime import datetime as dt
TeamAssign.objects.create(team=teamA,user=scott,enable_from=dt(2018,12,16))
TeamAssign.objects.create(team=teamA,user=tiger,enable_from=dt(2018,12,17))
I don't know if it will be helpful, but if you don't mind, please check it out.
© 2024 OneMinuteCode. All rights reserved.