Set kwargs on ObjectRead
This commit is contained in:
parent
f10400b3c4
commit
422ffb3284
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user