Merge pull request #161 from yakky/django_17_migrations

Support Django 1.7 migrations
This commit is contained in:
Patrick Lauber 2014-08-14 11:37:59 +02:00
commit 981d5dc52e
3 changed files with 29 additions and 0 deletions

View File

@ -19,6 +19,10 @@ This plugin requires `django CMS` 2.3 or higher to be properly installed.
* In your projects `virtualenv`, run ``pip install djangocms-text-ckeditor``.
* Add ``'djangocms_text_ckeditor'`` to your ``INSTALLED_APPS`` setting **BEFORE** the ``cms`` entry.
* If using Django 1.7 add ``'djangocms_text_ckeditor': 'djangocms_text_ckeditor.migrations_django',``
to ``MIGRATION_MODULES`` (or define ``MIGRATION_MODULES`` if it does not exists);
when django CMS 3.1 will be released, migrations for Django 1.7 will be moved
to the standard location and the south-style ones to ``south_migrations``.
* Run ``manage.py migrate djangocms_text_ckeditor``.
Upgrading from ``cms.plugins.text``

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cms', '__first__'),
]
operations = [
migrations.CreateModel(
name='Text',
fields=[
('body', models.TextField(verbose_name='body')),
('cmsplugin_ptr', models.OneToOneField(auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
],
options={
'abstract': False,
},
bases=('cms.cmsplugin',),
),
]