-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #461 from opengisch/release_patch
- Loading branch information
Showing
26 changed files
with
495 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from django.contrib import admin | ||
from django.contrib.admin import register | ||
|
||
from .models import AuthToken | ||
|
||
|
||
@register(AuthToken) | ||
class AuthTokenAdmin(admin.ModelAdmin): | ||
list_display = ("user", "created_at", "expires_at", "last_used_at", "client_type") | ||
readonly_fields = ( | ||
"key", | ||
"user", | ||
"created_at", | ||
"last_used_at", | ||
"client_type", | ||
"user_agent", | ||
) | ||
list_filter = ("created_at", "last_used_at", "expires_at") | ||
|
||
search_fields = ("user__username__iexact", "client_type", "key__startswith") |
Oops, something went wrong.