Skip to content

Commit ba4fbf1

Browse files
committed
chore: display token expiration for Application table in admin
1 parent d37bed2 commit ba4fbf1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

oauth2_provider/admin.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77

88

99
class ApplicationAdmin(admin.ModelAdmin):
10-
list_display = ("id", "name", "user", "client_type", "authorization_grant_type")
10+
list_display = (
11+
"id",
12+
"name",
13+
"user",
14+
"access_token_expire_seconds",
15+
"refresh_token_expire_seconds",
16+
"client_type",
17+
"authorization_grant_type",
18+
)
1119
list_filter = ("client_type", "authorization_grant_type", "skip_authorization")
1220
radio_fields = {
1321
"client_type": admin.HORIZONTAL,

0 commit comments

Comments
 (0)