From 6ce0304dd45514f1549adc81c1c8058356efb4af Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Thu, 7 Sep 2023 14:13:27 +0200 Subject: [PATCH] chore: fix DeleteViewCustomDeleteWarning --- rdmo/projects/views/membership.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdmo/projects/views/membership.py b/rdmo/projects/views/membership.py index 8392ff2d18..54242b57e9 100644 --- a/rdmo/projects/views/membership.py +++ b/rdmo/projects/views/membership.py @@ -66,7 +66,7 @@ class MembershipDeleteView(ObjectPermissionMixin, RedirectViewMixin, DeleteView) def get_queryset(self): return Membership.objects.filter(project_id=self.kwargs.get('project_id')) - def delete(self, *args, **kwargs): + def form_valid(self, form): self.obj = self.get_object() if (self.request.user in self.obj.project.owners) or is_site_manager(self.request.user):