Prepare for DeleteView change in Django 4.0

This commit is contained in:
Raphael Michel
2023-01-24 14:16:01 +01:00
parent 50596b7543
commit 433262f6fc
14 changed files with 76 additions and 37 deletions

View File

@@ -127,6 +127,9 @@ class OAuthApplicationDeleteView(ApplicationDelete):
self.object.save()
return HttpResponseRedirect(self.success_url)
def form_valid(self, form):
return self.delete(self.request, self.args, self.kwargs)
class AuthorizationListView(ListView):
template_name = 'pretixcontrol/oauth/authorized.html'