Skip to content
Snippets Groups Projects
Unverified Commit f5a931f0 authored by Dan Braghis's avatar Dan Braghis Committed by GitHub
Browse files

Merge pull request #60 from OpenTechFund/hide-wagtail-forms-from-admin

Remove forms from the user
parents c190992a f3c51d19
No related branches found
No related tags found
No related merge requests found
from wagtail.wagtailcore import hooks
from wagtail.contrib.modeladmin.options import ModelAdminGroup, ModelAdmin, modeladmin_register
......@@ -22,3 +23,9 @@ class TaxonomiesModelAdminGroup(ModelAdminGroup):
modeladmin_register(TaxonomiesModelAdminGroup)
# Hide forms from the side menu, remove if adding public.forms back in
@hooks.register('construct_main_menu')
def hide_snippets_menu_item(request, menu_items):
menu_items[:] = [item for item in menu_items if item.name != 'forms']
......@@ -22,7 +22,6 @@ INSTALLED_APPS = [
'opentech.apply.stream_forms',
'opentech.public.esi',
'opentech.public.forms',
'opentech.public.funds',
'opentech.public.home',
'opentech.public.navigation',
......
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