Skip to content

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

NameTypeRequiredDescription
selfyes
requestyes
pkyes

Source

server/vueda/core/viewsets/__init__.py:819

deactivate

Signature

deactivate(self, request, pk)

Parameters

NameTypeRequiredDescription
selfyes
requestyes
pkyes

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

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