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

Does many to many work #28

Closed
harshil07 opened this issue Jan 28, 2013 · 2 comments
Closed

Does many to many work #28

harshil07 opened this issue Jan 28, 2013 · 2 comments

Comments

@harshil07
Copy link

I am using InheritanceManager [django-model-utils] for a few of my models.

I have a 'Folder' model and then a base 'Media' model.
The folder has a many to many to the Media

Then I have a few implementations of Media i.e Image, Document etc. Not sure if this is really an issue but when I create a new instance of Document lets say and add it to the folders many to many relationship, it doesn't seem to invalidate or im missing something.

Here is the result in shell. This might help.

folder.media.all()
Media: Media object, Media: Media object, Media: Media object, Media: Media object

list(folder.media.all())
Media: Media object, Media: Media object

The django rendering seems to do the latter looks like cause I only see two in the objects in template.

Any ideas? Thanks.

@Suor
Copy link
Owner

Suor commented Jan 29, 2013

m2m invalidation support is sparse and no surprise it don't work for Multitable inheritance models.

Can you add a failing test to IssueTests? This will make things moving.

@Suor
Copy link
Owner

Suor commented Feb 3, 2013

Appears to be this has nothing to do with m2m and InheritanceManager, multi-table inheritance just is not supported by cacheops. I created a separate issue #31 for this.

@Suor Suor closed this as completed Feb 3, 2013
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

2 participants