summaryrefslogtreecommitdiff
path: root/app/products/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/products/admin.py')
-rw-r--r--app/products/admin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/products/admin.py b/app/products/admin.py
index d8059f2..3a26358 100644
--- a/app/products/admin.py
+++ b/app/products/admin.py
@@ -1,15 +1,21 @@
from django.contrib import admin
+
from .models import Brand, Product
+from utils.widgets import AdminImageWidget, LGEntryForm
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
+ form = LGEntryForm
list_display = ('name', 'admin_thumbnail', 'rating', 'pub_date')
search_fields = ['name', 'body_markdown']
list_filter = ('rating', 'pub_date')
class Media:
- js = ('next-prev-links.js',)
+ js = ('image-loader.js', 'next-prev-links.js')
+ css = {
+ "all": ("my_styles.css",)
+ }
@admin.register(Brand)