fix related name for placeholder fields

This commit is contained in:
Arvind Tiwari 2018-03-29 00:58:08 +05:30
commit 29a2ee098b
2 changed files with 33 additions and 2 deletions

View file

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