Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Dec 2, 2024
2 parents 2fa8c2f + ee36abd commit f360fa5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ path = "src/linked_services/__about__.py"

[tool.hatch.envs.default]
dependencies = [
"pytz",
"coverage[toml]>=6.5",
"pytest",
"pytest-django",
Expand Down
2 changes: 1 addition & 1 deletion src/linked_services/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present jefer94 <[email protected]>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
__version__ = "1.2.2"
__version__ = "1.2.4"
18 changes: 18 additions & 0 deletions src/linked_services/django/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
AppOptionalScope,
AppRequiredScope,
AppUserAgreement,
FirstPartyCredentials,
FirstPartyWebhookLog,
LegacyKey,
OptionalScopeSet,
Scope,
Expand Down Expand Up @@ -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 = []

0 comments on commit f360fa5

Please sign in to comment.