Skip to content
Snippets Groups Projects
Commit c42f06c7 authored by Dylann Cordel's avatar Dylann Cordel :crossed_swords:
Browse files

replace _ by - in slot names

parent 67436f38
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ def newsboxcms_mcls_processor(mcls, class_name, class_bases, class_attrs, base,
newsbox_opts['trans_fieldnames'].append('newsbox_summary')
class_attrs['newsbox_body'] = PlaceholderField(
'newsbox_body',
'newsbox-body',
verbose_name=_('body'))
if 'newsbox_body' in newsbox_opts['trans_fieldnames']:
newsbox_opts['trans_fieldnames'].remove('newsbox_body')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment