Skip to content

Commit

Permalink
Merge pull request #36 from molgen/disable-submit-action
Browse files Browse the repository at this point in the history
Disable "submit" option from edit action menu
  • Loading branch information
donald authored Nov 18, 2019
2 parents aa7f886 + 15c18de commit e3eaa3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpicms/base/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def send_notifications(request, page):
fail_silently=True)
logger.debug(f'Send change notification to {subscribers}')

@hooks.register('construct_page_action_menu')
def remove_submit_to_moderator_option(menu_items, request, context):
menu_items[:] = [item for item in menu_items if item.name != 'action-submit']

class FeaturedImageAdmin(ModelAdmin):
model = FeaturedImage
Expand Down

0 comments on commit e3eaa3e

Please sign in to comment.