Commits

Luke Plant committed 9a02b95

Compatibility for django-cms 2.4

  • Participants
  • Parent commits 9ff778b

Comments (0)

Files changed (1)

File semanticeditor/widgets.py

             'name': name,
             'language': language,
             'SEMANTICEDITOR_MEDIA_URL': settings.SEMANTICEDITOR_MEDIA_URL,
-            'CMS_MEDIA_URL': settings.CMS_MEDIA_URL,
+            'CMS_MEDIA_URL': getattr(settings, 'CMS_MEDIA_URL', None),
             'WYM_TOOLS': mark_safe(text_settings.WYM_TOOLS),
             'WYM_CONTAINERS': mark_safe(containers),
             'WYM_CLASSES': mark_safe(text_settings.WYM_CLASSES),