Closed chrisfong closed 2 years ago
Sorry for the late response @chrisfong . Did you find a solution? I've not encountered this error before and can't reproduce it.
What version of django and django_polymorphic are you using?
I am having this same issue with django-filer 0.9.3 django-polymorphic 0.4.0
I do not have the reproduction steps yet, though.
I suspect his has something to do with django ContentType pks being mixed up. Maybe after loading a dbdump?
Definitely. I had wrong polymorphic_ctype_id in filer_file table. I did do some database dumping and restoring and must have screwed it there. Everything works now that I changed the polymorphic_ctype_id.
I just ran into this same issue after trying to load data from a dumpdata output. Doing a dump data using natural keys will also prevent this issue from occurring.
./manage.py dumpdata filer > filer.json --natural --indent 4
Hello Guys,
I have the same problem with a django shop app, after doing the a restore, how exactly do i fix this in the database, how to change the polymorphic_ctype_id,
Thanks guys
It appears that setting the "polymorphic_ctype_id" to the ContentType relative to filer.file works.
For me following the hint of eressler about using --natural was the way to go. THANKS!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This will now be closed due to inactivity, but feel free to reopen it.
Getting this error when clicking into a folder in the Filer plugin in Django Admin. Can someone point me in the right direction? Thanks.