diff --git a/pyproject.toml b/pyproject.toml index 9631973..26c4836 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ path = "src/linked_services/__about__.py" [tool.hatch.envs.default] dependencies = [ + "pytz", "coverage[toml]>=6.5", "pytest", "pytest-django", diff --git a/src/linked_services/__about__.py b/src/linked_services/__about__.py index d6ecd7e..9dacec3 100644 --- a/src/linked_services/__about__.py +++ b/src/linked_services/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2024-present jefer94 # # SPDX-License-Identifier: LGPL-3.0-or-later -__version__ = "1.2.2" +__version__ = "1.2.4" diff --git a/src/linked_services/django/admin.py b/src/linked_services/django/admin.py index 781dbd1..9d60ab4 100644 --- a/src/linked_services/django/admin.py +++ b/src/linked_services/django/admin.py @@ -5,6 +5,8 @@ AppOptionalScope, AppRequiredScope, AppUserAgreement, + FirstPartyCredentials, + FirstPartyWebhookLog, LegacyKey, OptionalScopeSet, Scope, @@ -60,3 +62,19 @@ class AppUserAgreementAdmin(admin.ModelAdmin): search_fields = ["user__username", "user__email", "user__first_name", "user__last_name", "app__name", "app__slug"] list_filter = ["app"] actions = [] + + +@admin.register(FirstPartyWebhookLog) +class FirstPartyWebhookLogAdmin(admin.ModelAdmin): + list_display = ("id", "app", "type", "user_id", "external_id", "url", "processed", "attempts", "status") + search_fields = ["user_id", "external_id", "url", "app__name", "app__slug"] + list_filter = ["app", "type", "processed", "status"] + actions = [] + + +@admin.register(FirstPartyCredentials) +class FirstPartyCredentialsAdmin(admin.ModelAdmin): + list_display = ("id", "user", "app") + search_fields = ["user__username", "user__email", "user__first_name", "user__last_name", "app__name", "app__slug"] + list_filter = ["app"] + actions = []