parameters: (self)
return_statement: return obj
docstring: Retrieve accessible object.
docstring_summary: Retrieve accessible object.
docstring_tokens: Retrieve accessible object .
function: 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
function_tokens: 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