From 3dafe3ab36427a8f281a8aea89936d70e151fb3d Mon Sep 17 00:00:00 2001 From: jefer94 Date: Tue, 22 Oct 2024 14:24:02 -0500 Subject: [PATCH] add admin --- breathecode/authenticate/admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/breathecode/authenticate/admin.py b/breathecode/authenticate/admin.py index 05ef34d05..3af3a2b3f 100644 --- a/breathecode/authenticate/admin.py +++ b/breathecode/authenticate/admin.py @@ -35,6 +35,7 @@ GithubAcademyUser, GithubAcademyUserLog, GitpodUser, + GoogleWebhook, Profile, ProfileAcademy, Role, @@ -498,3 +499,10 @@ def authenticate(self, obj): return format_html( f"connect owner" ) + + +@admin.register(GoogleWebhook) +class GoogleWebhookAdmin(admin.ModelAdmin): + list_display = ("message", "status", "status_text", "created_at", "updated_at") + search_fields = ["message", "status", "status_text"] + actions = []