aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/resources/views
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-01-27 10:16:52 +0100
committerGravatar Leon Sandøy <[email protected]>2022-01-27 10:16:52 +0100
commit4ee8d527a2cf0ac7e4fd977ffd29e560b3cd48cb (patch)
tree86037770cbcd15e8055f8469166d7139dbbf8d53 /pydis_site/apps/resources/views
parentFix broken yaml in kivy.yaml. (diff)
Greatly simplify the backend.
Here we're getting rid of all filtering and search functionality on the backend. We'll be handling this on the client-side from now on.
Diffstat (limited to 'pydis_site/apps/resources/views')
-rw-r--r--pydis_site/apps/resources/views/__init__.py5
-rw-r--r--pydis_site/apps/resources/views/resources_list.py18
2 files changed, 2 insertions, 21 deletions
diff --git a/pydis_site/apps/resources/views/__init__.py b/pydis_site/apps/resources/views/__init__.py
index c89071c5..986f3e10 100644
--- a/pydis_site/apps/resources/views/__init__.py
+++ b/pydis_site/apps/resources/views/__init__.py
@@ -1,4 +1,3 @@
-from .resources import resource_view
-from .resources_list import ResourcesListView
+from .resources import ResourceView
-__all__ = ["resource_view", "ResourcesListView"]
+__all__ = ["ResourceView"]
diff --git a/pydis_site/apps/resources/views/resources_list.py b/pydis_site/apps/resources/views/resources_list.py
deleted file mode 100644
index 30498c8f..00000000
--- a/pydis_site/apps/resources/views/resources_list.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from typing import Any, Dict
-
-from django.views.generic import TemplateView
-
-from pydis_site.apps.resources.resource_search import RESOURCES
-
-
-class ResourcesListView(TemplateView):
- """Shows specific resources list."""
-
- template_name = "resources/resources_list.html"
-
- def get_context_data(self, **kwargs) -> Dict[str, Any]:
- """Add resources and subcategories data into context."""
- context = super().get_context_data(**kwargs)
- context["resources"] = RESOURCES
-
- return context