From 72ac2272067649a1a558cb61204a7faf88a0e8e9 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Tue, 9 Jul 2024 11:54:26 -0400
Subject: [PATCH] feat: update admin interface Host -> Profile

---
 program/admin.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/program/admin.py b/program/admin.py
index 0d7ea87c..9ae72af1 100644
--- a/program/admin.py
+++ b/program/admin.py
@@ -10,11 +10,11 @@ from program.models import (
     CBA,
     Category,
     FundingCategory,
-    Host,
     Language,
     License,
     LinkType,
     MusicFocus,
+    Profile,
     RadioSettings,
     RRule,
     Topic,
@@ -38,8 +38,8 @@ class LicenseAdmin(admin.ModelAdmin):
     list_display = ("name", "identifier")
 
 
-@admin.register(Host)
-class HostAdmin(admin.ModelAdmin):
+@admin.register(Profile)
+class ProfileAdmin(admin.ModelAdmin):
     fields = ("name", "email", "biography", "created_at", "created_by", "updated_at", "updated_by")
     list_display = ("name",)
     readonly_fields = ("created_at", "created_by", "updated_at", "updated_by")
@@ -122,11 +122,8 @@ class RadioSettingsAdmin(admin.ModelAdmin):
             "Image requirements",
             {
                 "fields": [
-                    ("host_image_aspect_ratio", "host_image_shape"),
-                    (
-                        "note_image_aspect_ratio",
-                        "note_image_shape",
-                    ),
+                    ("note_image_aspect_ratio", "note_image_shape"),
+                    ("profile_image_aspect_ratio", "profile_image_shape"),
                     ("show_image_aspect_ratio", "show_image_shape"),
                     ("show_logo_aspect_ratio", "show_logo_shape"),
                 ]
-- 
GitLab