Files
vrobbler/vrobbler/apps/profiles/admin.py
Colin Powell 102494ede7
All checks were successful
build / test (push) Successful in 1m55s
[admin] Use raw ids where possible and simplify scrobble inlines
2026-06-15 13:25:10 -04:00

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",
)