Skip to content

Commit

Permalink
chore: fix DeleteViewCustomDeleteWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Sep 7, 2023
1 parent 0dbbe5a commit 6ce0304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmo/projects/views/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6ce0304

Please sign in to comment.