Remove unused function in callbacks

This commit is contained in:
Mark Veidemanis 2023-02-10 21:16:27 +00:00
parent 0b7dc001bf
commit aa227c53ac
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 0 additions and 9 deletions

View File

@ -5,15 +5,6 @@ from mixins.views import ObjectList
from core.models import Callback, Hook, Signal 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): class Callbacks(LoginRequiredMixin, ObjectList):
list_template = "partials/callback-list.html" list_template = "partials/callback-list.html"
page_title = "List of received callbacks" page_title = "List of received callbacks"