DeactivateActionViewSetMixin
Overview
A ViewSet mixin that allows you to deactivate a model inheriting from ActivatableBaseModel.
Both actions consult get_warnings_for_object/get_warnings (provided by WarningConfirmationMixin, so any VuedaViewSet) after validation and before the write, gating the write behind a 409 confirmation when warnings are reported.
activate
Signature
activate(self, request, pk)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| pk | yes |
Source
server/vueda/core/viewsets/__init__.py:819
deactivate
Signature
deactivate(self, request, pk)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| pk | yes |
Source
server/vueda/core/viewsets/__init__.py:771
dict {#dict}
dictionary for instance variables
weakref {#weakref}
list of weak references to the object
Source
server/vueda/core/viewsets/__init__.py:762