(self)
return obj
Retrieve accessible object.
Retrieve accessible object.
Retrieve accessible object .
def get_object(self):
        """Retrieve accessible object."""
        obj = get_object_or_404(self.get_queryset(), pk=self.kwargs["pk"])
        self.check_object_permissions(self.request, obj)
        return obj
def get_object ( self ) : obj = get_object_or_404 ( self . get_queryset ( ) , pk = self . kwargs [ "pk" ] ) self . check_object_permissions ( self . request , obj ) return obj