From 38d364bd92ed21bdf5a10524c578417da8dac6e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <tomas@imaniti.org>
Date: Mon, 1 Jul 2024 17:55:49 +0200
Subject: [PATCH] remove limitation (for now)

---
 district/models.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/district/models.py b/district/models.py
index 7b6c3c50..00f4981c 100644
--- a/district/models.py
+++ b/district/models.py
@@ -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()),
-- 
GitLab