jrief / djangocms-cascade

Build Single Page Applications using the Django-CMS plugin system
MIT License
165 stars 85 forks source link

Problems with reversion.revisions #157

Closed davidetruffo closed 8 years ago

davidetruffo commented 8 years ago

Hello! i'm having troubles updating to 0.8.1

When i try to migrate (even with the --list option), i get the following:

 File "[my_venv]/lib/python3.4/site-packages/cmsplugin_cascade/plugin_base.py", line 76, in __new__
    if not reversion.revisions.is_registered(base_model):
AttributeError: 'module' object has no attribute 'is_registered'

Here's my pip freeze (yes, i tried installing the latest version of django-reversion, and the problem persists)

cmsplugin-filer==0.10.2
dj-database-url==0.3.0
Django==1.8.4
django-appconf==1.0.1
django-classy-tags==0.6.2
django-cms==3.1.5
django-easy-select2==1.3
django-filer==0.9.12
django-ipware==1.1.2
django-meta==0.3.1
django-meta-mixin==0.1.1
django-mptt==0.7.4
django-parler==1.5
django-polymorphic==0.7.1
django-reversion==1.8.5
django-sekizai==0.8.2
Django-Select2==4.3.1
django-taggit==0.17.0
django-taggit-autosuggest==0.2.7
django-taggit-templatetags==0.2.5
django-templatetag-sugar==1.0
django-treebeard==3.0
djangocms-admin-style==0.2.7
djangocms-cascade==0.8.1
djangocms-forms==0.1.15
djangocms-inherit==0.1
djangocms-installer==0.7.9
djangocms-link==1.6.2
djangocms-picture==0.1
djangocms-style==1.5
git+https://github.com/britny/djangocms-styledlink.git
djangocms-teaser==0.1
djangocms-text-ckeditor==2.7.1
djangocms-video==0.1
easy-thumbnails==2.2
hashids==1.1.0
html5lib==0.999
jsonfield==1.0.3
Pillow==2.9.0
psycopg2==2.6.1
pytz==2015.4
requests==2.8.1
six==1.9.0
tablib==0.10.0
tzlocal==1.2
Unidecode==0.4.18
wheel==0.24.0

EDIT: updating reversion to v.1.10.1, the error i get is:

 File "[my_venv]/lib/python3.4/site-packages/cms/utils/reversion_hacks.py", line 11, in register_draft_only
    revision_manager = reversion.revision
AttributeError: 'module' object has no attribute 'revision'
jrief commented 8 years ago

Reversion changed the API in 1.10 and is compatible with Django-1.9 If you want to use django-cms-3.1, I'll have to import differently. The best solution would be to upgrade to django-cms-3.2.3 and django-1.9. There it works (... for me :))

davidetruffo commented 8 years ago

Great, i'll give it a try tomorrow

On 06 Apr 2016, at 17:45, Jacob Rief notifications@github.com wrote:

Reversion changed the API in 1.10 and is compatible with Django-1.9 If you want to use django-cms-3.1, I'll have to import differently. The best solution would be to upgrade to django-cms-3.2.3 and django-1.9. There it works (... for me :))

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

rfleschenberg commented 8 years ago

Closing. @davidetruffo, please open a new issue if the problem persists. Thanks!