Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Adjust migrations for djangoCMS 3.3.0 and 3.3.1 compatibility #259

Merged

Conversation

czpython
Copy link
Contributor

@czpython czpython commented Aug 21, 2016

djangoCMS 3.3.1 introduced a change that by default sets related_name for cmsplugin_ptr to %(app_label)s_%(class)s'. This means that any plugin model which did not explicitly set a cmsplugin_ptr would automatically get this change and prompt django to ask for migrations.

To avoid incompatibilities between 3.3.0 and 3.3.1, we decided to explicitly define cmsplugin_ptr to match the new format on plugins that need to support both versions.

@@ -4,5 +4,6 @@ django-appconf
djangocms-helper>=0.9.1
https://github.com/divio/django-filer/archive/develop.zip
djangocms-text-ckeditor
html5lib<0.99999999
Copy link

@jqb jqb Aug 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why it's here?

EDIT: I mean it doesn't seem to be related to the topic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's very unfortunate but this app uses djangocms-text-ckeditor for testing which in turn installs the latest html5lib which is not compatible with anything.
So we have to limit html5lib to be less than the last release.

@jqb
Copy link

jqb commented Aug 22, 2016

Code looks good 👍

but I don't really understand why you're explicitly defining "cmsplugin_ptr" field. Can you put short note here?

@czpython
Copy link
Contributor Author

Thanks @jqb.
Updated PR description.

@Chive
Copy link

Chive commented Aug 22, 2016

ok to merge

@czpython czpython merged commit 5937e06 into django-cms:develop Aug 22, 2016
@czpython czpython deleted the fixes/more-migration-adjustments branch August 22, 2016 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants