Merge pull request #601 from tiwariav/task/4315/cms_navbar_to_static

bugfix/ placeholder fields migration
This commit is contained in:
Arvind Tiwari 2018-03-29 01:00:52 +05:30 committed by GitHub
commit 8b4e0d847d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 2 deletions

View file

@ -14,8 +14,12 @@ class CMSIntegration(models.Model):
'fetch the Integration into pages' 'fetch the Integration into pages'
) )
) )
footer_placeholder = PlaceholderField('datacenterlight_footer') footer_placeholder = PlaceholderField(
navbar_placeholder = PlaceholderField('datacenterlight_navbar') 'datacenterlight_footer', related_name='dcl-footer-placeholder+'
)
navbar_placeholder = PlaceholderField(
'datacenterlight_navbar', related_name='dcl-navbar-placeholder+'
)
def __str__(self): def __str__(self):
return self.name return self.name

View file

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2018-03-28 19:26
from __future__ import unicode_literals
import cms.models.fields
from django.db import migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('datacenterlight', '0016_cmsintegration'),
]
operations = [
migrations.AlterField(
model_name='cmsintegration',
name='footer_placeholder',
field=cms.models.fields.PlaceholderField(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dcl-footer-placeholder+', slotname='datacenterlight_footer', to='cms.Placeholder'),
),
migrations.AlterField(
model_name='cmsintegration',
name='navbar_placeholder',
field=cms.models.fields.PlaceholderField(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dcl-navbar-placeholder+', slotname='datacenterlight_navbar', to='cms.Placeholder'),
),
]