diff --git a/core/views/callbacks.py b/core/views/callbacks.py index 6cdab69..3d4f11f 100644 --- a/core/views/callbacks.py +++ b/core/views/callbacks.py @@ -5,15 +5,6 @@ from mixins.views import ObjectList from core.models import Callback, Hook, Signal -def get_callbacks(user, hook=None, signal=None): - if hook: - cast = {"hook": hook, "hook__user": user} - elif signal: - cast = {"signal": signal, "signal__user": user} - callbacks = Callback.objects.filter(**cast) - return callbacks - - class Callbacks(LoginRequiredMixin, ObjectList): list_template = "partials/callback-list.html" page_title = "List of received callbacks"