22 lines
517 B
Python
22 lines
517 B
Python
from django.contrib import admin
|
|
|
|
from profiles.models import UserProfile
|
|
|
|
|
|
@admin.register(UserProfile)
|
|
class UserProfileAdmin(admin.ModelAdmin):
|
|
date_hierarchy = "created"
|
|
raw_id_fields = ("user",)
|
|
ordering = ("-created",)
|
|
readonly_fields = ("timezone_change_log",)
|
|
exclude = (
|
|
"twitch_token",
|
|
"twitch_client_secret",
|
|
"lastfm_password",
|
|
"webdav_pass",
|
|
"imap_pass",
|
|
"archivebox_password",
|
|
"todoist_auth_key",
|
|
"todoist_state",
|
|
)
|