From b103a1a51dc6125a2ad71eb0d381faaf4f29affb Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 8 Feb 2022 11:52:30 +0100 Subject: [PATCH] Rename attribute `_form` --> `form_class` --- ereuse_devicehub/inventory/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index e4e43ba5..bb809ec7 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -290,10 +290,10 @@ class TagUnlinkDeviceView(View): class NewActionView(View): methods = ['POST'] decorators = [login_required] - _form = NewActionForm + form_class = NewActionForm def dispatch_request(self): - self.form = self._form() + self.form = self.form_class() if self.form.validate_on_submit(): instance = self.form.save() @@ -313,10 +313,10 @@ class NewActionView(View): class NewAllocateView(NewActionView, DeviceListMix): methods = ['POST'] - _form = AllocateForm + form_class = AllocateForm def dispatch_request(self): - self.form = self._form() + self.form = self.form_class() if self.form.validate_on_submit(): instance = self.form.save()