csp detail page
This commit is contained in:
parent
eb7485e345
commit
600eee2b4c
15 changed files with 159 additions and 7 deletions
|
@ -14,8 +14,9 @@ class CategoryAdmin(admin.ModelAdmin):
|
|||
|
||||
@admin.register(CloudProvider)
|
||||
class CloudProviderAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "logo_preview")
|
||||
list_display = ("name", "slug", "logo_preview")
|
||||
search_fields = ("name",)
|
||||
prepopulated_fields = {"slug": ("name",)}
|
||||
|
||||
def logo_preview(self, obj):
|
||||
if obj.logo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue