Remove unused function in callbacks
This commit is contained in:
parent
0b7dc001bf
commit
aa227c53ac
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue