Skip to content
Snippets Groups Projects
Commit 38d364bd authored by Alexa Valentová's avatar Alexa Valentová
Browse files

remove limitation (for now)

parent b8888a5b
No related branches found
No related tags found
2 merge requests!1042remove limitation (for now),!1041Remove limitation (for now)
Pipeline #18882 passed
......@@ -68,18 +68,6 @@ from .forms import JekyllImportForm
from wagtail import hooks
@hooks.register('construct_page_chooser_queryset')
def limit_page_chooser_to_site_specific_pages(pages, request):
try:
site = Site.find_for_request(request)
return pages.in_site(site)
except Exception as e:
print(e)
# couldn't filter by site so return untouched pages queryset
return pages
CONTENT_BLOCKS = DEFAULT_CONTENT_BLOCKS + [
("chart", ChartBlock(template="district/blocks/chart.html")),
("related", blocks.ArticlesBlock()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment