Admin Modules
- class action_triggers.admin.ConfigAdmin(model, admin_site)[source]
Bases:
ModelAdmin
Admin interface for the Config model.
- autocomplete_fields = ('created_by',)
- date_hierarchy = 'created_on'
- inlines = (<class 'action_triggers.admin.ConfigSignalInline'>, <class 'action_triggers.admin.WebhookInline'>, <class 'action_triggers.admin.MessageBrokerQueueInline'>)
- list_display = ('id', 'created_on', 'created_by', 'active')
- list_filter = ('active', 'created_on', 'content_types')
- property media
- ordering = ('-created_on',)
- readonly_fields = ('created_on',)
- search_fields = ('id', 'created_by__username')
- class action_triggers.admin.ConfigSignalAdmin(model, admin_site)[source]
Bases:
ModelAdmin
Admin interface for the ConfigSignal model.
- autocomplete_fields = ('config',)
- list_display = ('id', 'config', 'signal')
- list_filter = ('signal',)
- property media
- search_fields = ('config__id',)
- class action_triggers.admin.ConfigSignalInline(parent_model, admin_site)[source]
Bases:
TabularInline
Support for inlining ConfigSignal objects.
- extra = 0
- property media
- model
alias of
ConfigSignal
- class action_triggers.admin.MessageBrokerQueueAdmin(model, admin_site)[source]
Bases:
ModelAdmin
Admin interface for the MessageBrokerQueue model.
- autocomplete_fields = ('config',)
- list_display = ('id', 'name', 'config', 'timeout_secs')
- property media
- search_fields = ('config__id',)
- class action_triggers.admin.MessageBrokerQueueInline(parent_model, admin_site)[source]
Bases:
StackedInline
Support for inlining MessageBrokerQueue objects.
- extra = 0
- property media
- model
alias of
MessageBrokerQueue
- class action_triggers.admin.WebhookAdmin(model, admin_site)[source]
Bases:
ModelAdmin
Admin interface for the Webhook model.
- autocomplete_fields = ('config',)
- list_display = ('id', 'config', 'url', 'http_method', 'timeout_secs')
- list_filter = ('http_method',)
- property media
- search_fields = ('config__id',)