From 973892cb238987c6f68ca8e0628fc3b09e3a60f8 Mon Sep 17 00:00:00 2001 From: Matti Lamppu Date: Mon, 22 Aug 2022 00:15:45 +0300 Subject: [PATCH] Change model admin name --- signal_webhooks/admin.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/signal_webhooks/admin.py b/signal_webhooks/admin.py index 88b3ddc..69bd843 100644 --- a/signal_webhooks/admin.py +++ b/signal_webhooks/admin.py @@ -1,3 +1,5 @@ +import logging + from django import forms from django.contrib import admin @@ -6,6 +8,15 @@ from .utils import get_webhookhook_model +__all__ = [ + "WebhookModelForm", + "WebhookAdmin", +] + + +logger = logging.getLogger(__name__) + + WebhookModel = get_webhookhook_model() @@ -40,7 +51,7 @@ def clean(self): @admin.register(WebhookModel) -class HookAdmin(admin.ModelAdmin): +class WebhookAdmin(admin.ModelAdmin): form = WebhookModelForm list_display = [ "name",