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

Some erros in Django 1.7 #44

Open
salazarfelipe opened this issue Oct 14, 2014 · 6 comments
Open

Some erros in Django 1.7 #44

salazarfelipe opened this issue Oct 14, 2014 · 6 comments

Comments

@salazarfelipe
Copy link

Cannot use add() on a ManyToManyField which specifies an intermediary model. Use relationships.Relationship's Manager instead.
What this mean?

@petedrennan
Copy link

Also getting this error - any solutions?

@salazarfelipe
Copy link
Author

No yet. No updates

@syndbg
Copy link

syndbg commented Nov 9, 2014

Can you post a stack trace?

@carpincho
Copy link

I also have the same error. :S

@LautAgency
Copy link

I am having the same issue. So far i figured that it has something to do with the relationship handler in views.py since one can't use add, create.
https://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany
I tried different solutions but could not solve the problem. Did anyone figure out a solution for this problem?

@carpincho
Copy link

I would bet that the problem is caused by an update in the many to many relationship in Django 1.7.
I think it is within the else clause (line 264 of models.py) when a custom manager is created from RelationshipsDescriptor class. The structure (or fields) might be different for Django 1.7 but this clause might be only for <1.4 to < 1.7. Anyway, I'm not sure. I'm just guessing from what I read.

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

No branches or pull requests

5 participants