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
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source
server/vueda/core/views.py:33
get_queryset
Signature
get_queryset(self)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
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
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| args | yes | ||
| kwargs | yes |
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
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Returns
<class 'bool'>
Source
server/vueda/core/views.py:29
permission_classes
Source
server/vueda/core/views.py:12