From 62bee0d7d83a45e9b358663a1b26aacff15832ba Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Sun, 15 Mar 2026 21:50:35 +0100 Subject: [PATCH] Remove code in View that is already the default since Django 2.2. --- hypha/apply/utils/views.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hypha/apply/utils/views.py b/hypha/apply/utils/views.py index fcce16db59..78fc90ea42 100644 --- a/hypha/apply/utils/views.py +++ b/hypha/apply/utils/views.py @@ -144,13 +144,6 @@ def post(self, request, *args, **kwargs): class DelegatedViewMixin(View): """For use on create views accepting forms from another view""" - # TODO: REMOVE IN DJANGO 2.2 - def setup(self, request, *args, **kwargs): - """Initialize attributes shared by all view methods.""" - self.request = request - self.args = args - self.kwargs = kwargs - def get_object(self): # Make sure the form instance, bound at the parent class level, is the same as the # value we work with on the class.