Enums Module

class action_triggers.enums.HTTPMethodChoices(value)[source]

Bases: TextChoices

Represents the supported HTTP methods for webhooks.

DELETE = 'DELETE'
GET = 'GET'
PATCH = 'PATCH'
POST = 'POST'
PUT = 'PUT'
class action_triggers.enums.SignalChoices(value)[source]

Bases: TextChoices

Represents the supported signals for action triggers.

POST_DELETE = 'post_delete'
POST_SAVE = 'post_save'
PRE_DELETE = 'pre_delete'
PRE_SAVE = 'pre_save'
classmethod for_signal(signal: ModelSignal) SignalChoices[source]

Return the SignalChoices instance for the given signal.

Parameters:

signal (signals.ModelSignal) – The signal to map to a SignalChoices instance.

Returns:

The SignalChoices instance for the given signal.

Return type:

SignalChoices