@@ -0,0 +1,16 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import ProfileRevision, SearchProfile
|
||||
|
||||
|
||||
@admin.register(SearchProfile)
|
||||
class SearchProfileAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "user", "is_active", "max_distance_km", "version", "updated_at")
|
||||
list_filter = ("is_active", "locale", "learning_enabled")
|
||||
search_fields = ("name", "user__username", "home_municipality")
|
||||
|
||||
|
||||
@admin.register(ProfileRevision)
|
||||
class ProfileRevisionAdmin(admin.ModelAdmin):
|
||||
list_display = ("profile", "version", "reason", "created_at")
|
||||
readonly_fields = ("profile", "version", "snapshot", "reason", "created_at", "updated_at")
|
||||
Reference in New Issue
Block a user