Skip to content

Commit

Permalink
add admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Oct 22, 2024
1 parent 9283536 commit 3dafe3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions breathecode/authenticate/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
GithubAcademyUser,
GithubAcademyUserLog,
GitpodUser,
GoogleWebhook,
Profile,
ProfileAcademy,
Role,
Expand Down Expand Up @@ -498,3 +499,10 @@ def authenticate(self, obj):
return format_html(
f"<a href='/v1/auth/github?user={obj.github_owner.id}&url={self.github_callback}&scope={scopes}'>connect owner</a>"
)


@admin.register(GoogleWebhook)
class GoogleWebhookAdmin(admin.ModelAdmin):
list_display = ("message", "status", "status_text", "created_at", "updated_at")
search_fields = ["message", "status", "status_text"]
actions = []

0 comments on commit 3dafe3a

Please sign in to comment.