Skip to content

DynamicObjectView

Overview

APIView helper for endpoints that operate on arbitrary registered models.

The request names its target through app_label, model, and an optional object_id. Resolving an object checks that object's permissions, so an endpoint reads the object's data only after the object itself has admitted the caller.

get_object

Return the object the request names, or None, after checking its permissions.

Signature

get_object(self)

Parameters

NameTypeRequiredDescription
selfyes

Source

server/vueda/core/views.py:33

get_queryset

Signature

get_queryset(self)

Parameters

NameTypeRequiredDescription
selfyes

Source

server/vueda/core/views.py:23

initial

Runs anything that needs to occur prior to calling the method handler.

Signature

initial(self, request, args, kwargs)

Parameters

NameTypeRequiredDescription
selfyes
requestyes
argsyes
kwargsyes

Source

server/vueda/core/views.py:41

resolves_object

Whether this request names a concrete object, which get_object then checks.

Signature

resolves_object(self)

Parameters

NameTypeRequiredDescription
selfyes

Returns

<class 'bool'>

Source

server/vueda/core/views.py:29

permission_classes

Source

server/vueda/core/views.py:12

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2