Skip to content

Commit

Permalink
Add djangocms-moderation support (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoravcik authored and Mateusz Kamycki committed Oct 5, 2018
1 parent dbb6850 commit 6aee780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djangocms_alias/cms_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
class AliasCMSConfig(CMSAppConfig):
cms_enabled = True
cms_toolbar_enabled_models = [(AliasContent, render_alias_content)]
moderated_models = [AliasContent]

djangocms_moderation_enabled = getattr(
settings, 'MODERATING_ALIAS_MODELS_ENABLED', True)
djangocms_versioning_enabled = getattr(
settings, 'VERSIONING_ALIAS_MODELS_ENABLED', True)
if djangocms_versioning_enabled:
Expand Down

0 comments on commit 6aee780

Please sign in to comment.