You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The django rendering seems to do the latter looks like cause I only see two in the objects in template.
Any ideas? Thanks.
The text was updated successfully, but these errors were encountered: