Skip to content

Commit 4236880

Browse files
authored
Remove code in View that is already the default since Django 2.2. (#4762)
Found an old TODO with an easy fix.
1 parent 9cc718b commit 4236880

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

hypha/apply/utils/views.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,6 @@ def post(self, request, *args, **kwargs):
144144
class DelegatedViewMixin(View):
145145
"""For use on create views accepting forms from another view"""
146146

147-
# TODO: REMOVE IN DJANGO 2.2
148-
def setup(self, request, *args, **kwargs):
149-
"""Initialize attributes shared by all view methods."""
150-
self.request = request
151-
self.args = args
152-
self.kwargs = kwargs
153-
154147
def get_object(self):
155148
# Make sure the form instance, bound at the parent class level, is the same as the
156149
# value we work with on the class.

0 commit comments

Comments
 (0)