diff --git a/adhocracy4/projects/views.py b/adhocracy4/projects/views.py index bd893475d..8b5f4cd4b 100644 --- a/adhocracy4/projects/views.py +++ b/adhocracy4/projects/views.py @@ -112,11 +112,9 @@ def dispatch(self, request, *args, **kwargs): """Get this contexts project and module and validate them.""" module = self.get_module(*args, **kwargs) self.module = module - self.request.module = module project = self.get_project(*args, **kwargs) self.project = project - self.request.project = project if not project: raise Http404() diff --git a/tests/projects/test_project_views.py b/tests/projects/test_project_views.py index 036faa2eb..e3f19cee3 100644 --- a/tests/projects/test_project_views.py +++ b/tests/projects/test_project_views.py @@ -76,7 +76,6 @@ def test_project_context_kwargs(rf, project): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db @@ -87,7 +86,6 @@ def test_project_context_url(rf, project): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db @@ -102,7 +100,6 @@ class FakeProjectContextViewUrlOverwrite(FakeProjectContextView): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db @@ -116,7 +113,6 @@ def get_object(self): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db @@ -130,7 +126,6 @@ def get_object(self): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db @@ -145,7 +140,6 @@ def get_project(self, *args, **kwargs): assert response.content == b'project_context' assert view.project == project - assert request.project == project @pytest.mark.django_db