diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-28 13:39:02 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-28 13:39:02 -0500 |
commit | 9a620cf42bf1fe6977e378bd834b41ff4a593dde (patch) | |
tree | cf41a0582681cecaf88a30bfe409f9c2be57972a /app/products/admin.py | |
parent | 6e5897117124cd60ae81efb1574c6347f48e60e5 (diff) |
main: removed some apps I wasn't using and added bak to git to preserve
a copy of old apps
Diffstat (limited to 'app/products/admin.py')
-rw-r--r-- | app/products/admin.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/app/products/admin.py b/app/products/admin.py deleted file mode 100644 index 3a26358..0000000 --- a/app/products/admin.py +++ /dev/null @@ -1,28 +0,0 @@ -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 = ('image-loader.js', 'next-prev-links.js') - css = { - "all": ("my_styles.css",) - } - - -@admin.register(Brand) -class BrandAdmin(admin.ModelAdmin): - list_display = ('name', ) - search_fields = ['name',] - list_filter = ('pub_date',) - - class Media: - js = ('next-prev-links.js',) |