diff options
author | 2020-10-28 20:07:25 +0200 | |
---|---|---|
committer | 2020-10-28 20:07:25 +0200 | |
commit | 194e3720ad8cfac1c38d8ac1279688aa6dd65c6a (patch) | |
tree | e2b5d98ba1b4554f70c7084c0f6fa5701e1382e3 | |
parent | Remove unnecessary namespace from including resources app URLs (diff) |
Change resources home name from resources -> index
-rw-r--r-- | pydis_site/apps/resources/tests/test_views.py | 2 | ||||
-rw-r--r-- | pydis_site/apps/resources/urls.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/resources/tests/test_views.py b/pydis_site/apps/resources/tests/test_views.py index b131b2a6..497e9bfe 100644 --- a/pydis_site/apps/resources/tests/test_views.py +++ b/pydis_site/apps/resources/tests/test_views.py @@ -5,6 +5,6 @@ from django_hosts import reverse class TestResourcesView(TestCase): def test_resources_index_200(self): """Check does index of resources app return 200 HTTP response.""" - url = reverse("resources:resources") + url = reverse("resources:index") response = self.client.get(url) self.assertEqual(response.status_code, 200) diff --git a/pydis_site/apps/resources/urls.py b/pydis_site/apps/resources/urls.py index 208d0c93..c91e306e 100644 --- a/pydis_site/apps/resources/urls.py +++ b/pydis_site/apps/resources/urls.py @@ -4,5 +4,5 @@ from pydis_site.apps.resources import views app_name = "resources" urlpatterns = [ - path("", views.ResourcesView.as_view(), name="resources"), + path("", views.ResourcesView.as_view(), name="index"), ] |