Set kwargs on ObjectRead

This commit is contained in:
Mark Veidemanis 2023-03-18 11:10:12 +00:00
parent f10400b3c4
commit 422ffb3284
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

View File

@ -284,6 +284,7 @@ class ObjectRead(RestrictedViewMixin, ObjectNameMixin, DetailView):
detail_url_args[arg] = kwargs[arg]
self.request = request
self.kwargs = kwargs
self.object = self.get_object(**kwargs)
if isinstance(self.object, HttpResponse):
return self.object