decouple the dispatcher (a key, basically) with the actions to take upon receiving such a message. allows us to have multiple actions for one key without weird hacks
10 lines
217 B
Python
10 lines
217 B
Python
"""Manage dispatch models in the admin interface."""
|
|
|
|
from django.contrib import admin
|
|
|
|
from dispatch.models import Dispatcher, DispatcherAction
|
|
|
|
|
|
admin.site.register(Dispatcher)
|
|
admin.site.register(DispatcherAction)
|