Skip to content

Commit

Permalink
Merge 8795057 into 460dbf6
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Oct 30, 2017
2 parents 460dbf6 + 8795057 commit 5939f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_text_ckeditor/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Text',
fields=[
('cmsplugin_ptr', models.OneToOneField(serialize=False, parent_link=True, auto_created=True, to='cms.CMSPlugin', primary_key=True)),
('cmsplugin_ptr', models.OneToOneField(serialize=False, parent_link=True, auto_created=True, to='cms.CMSPlugin', primary_key=True, on_delete=models.CASCADE)),
('body', models.TextField(verbose_name='body')),
],
options={
Expand Down
1 change: 1 addition & 0 deletions djangocms_text_ckeditor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AbstractText(CMSPlugin):
# https://github.com/divio/django-cms/issues/5030
cmsplugin_ptr = models.OneToOneField(
CMSPlugin,
on_delete=models.CASCADE,
related_name='%(app_label)s_%(class)s',
parent_link=True,
)
Expand Down

0 comments on commit 5939f29

Please sign in to comment.