aldryn / aldryn-blog

aldryn-blog IS DEPRECATED. PLEASE USE aldryn-newsblog!
Other
20 stars 35 forks source link

Can't use dumpdata command #82

Open sephii opened 9 years ago

sephii commented 9 years ago

If you try to run the dumpdata command and have aldryn_blog in your INSTALLED_APPS you'll get the following error:

CommandError: Unable to serialize database: relation "aldryn_blog_latestentriesplugin" does not exist
LINE 1: ...n_blog_latestentriesplugin"."latest_entries" FROM "aldryn_bl...

I guess that's because, according to the migrations, the table was created under the name cmsplugin_latestentriesplugin (see https://github.com/aldryn/aldryn-blog/blob/master/aldryn_blog/migrations/0001_initial.py). For some reason the db_table attribute of the frozen latestentriesplugin model disappeared in migration 13 (https://github.com/aldryn/aldryn-blog/blob/master/aldryn_blog/migrations/0013_auto__add_category__add_categorytranslation__add_unique_categorytransl.py).

According to the warnings raised by DjangoCMS, support for the cmsplugin_ table naming thing will be dropped in DjangoCMS 3.1. I guess creating a migration to rename this table would make sense, as it would not only fix the dumpdata command, but also remove the warnings. FYI the table cmsplugin_authorsplugin is also affected.

creimers commented 9 years ago

I'm experiencing the same problem.