Initial deploy setup
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-21 14:00:00 +02:00
commit b8091e59bd
285 changed files with 27854 additions and 0 deletions
+16
View File
@@ -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")