Skip to content
Snippets Groups Projects
Verified Commit 72ac2272 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: update admin interface Host -> Profile

parent 90806892
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,11 @@ from program.models import ( ...@@ -10,11 +10,11 @@ from program.models import (
CBA, CBA,
Category, Category,
FundingCategory, FundingCategory,
Host,
Language, Language,
License, License,
LinkType, LinkType,
MusicFocus, MusicFocus,
Profile,
RadioSettings, RadioSettings,
RRule, RRule,
Topic, Topic,
...@@ -38,8 +38,8 @@ class LicenseAdmin(admin.ModelAdmin): ...@@ -38,8 +38,8 @@ class LicenseAdmin(admin.ModelAdmin):
list_display = ("name", "identifier") list_display = ("name", "identifier")
@admin.register(Host) @admin.register(Profile)
class HostAdmin(admin.ModelAdmin): class ProfileAdmin(admin.ModelAdmin):
fields = ("name", "email", "biography", "created_at", "created_by", "updated_at", "updated_by") fields = ("name", "email", "biography", "created_at", "created_by", "updated_at", "updated_by")
list_display = ("name",) list_display = ("name",)
readonly_fields = ("created_at", "created_by", "updated_at", "updated_by") readonly_fields = ("created_at", "created_by", "updated_at", "updated_by")
...@@ -122,11 +122,8 @@ class RadioSettingsAdmin(admin.ModelAdmin): ...@@ -122,11 +122,8 @@ class RadioSettingsAdmin(admin.ModelAdmin):
"Image requirements", "Image requirements",
{ {
"fields": [ "fields": [
("host_image_aspect_ratio", "host_image_shape"), ("note_image_aspect_ratio", "note_image_shape"),
( ("profile_image_aspect_ratio", "profile_image_shape"),
"note_image_aspect_ratio",
"note_image_shape",
),
("show_image_aspect_ratio", "show_image_shape"), ("show_image_aspect_ratio", "show_image_shape"),
("show_logo_aspect_ratio", "show_logo_shape"), ("show_logo_aspect_ratio", "show_logo_shape"),
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment