Fix os import and add media settings 6

This commit is contained in:
ack
2026-01-21 05:02:13 +03:00
parent 155c0d8436
commit 31423d168d
10 changed files with 87 additions and 19 deletions

View File

@@ -3,4 +3,6 @@ from .models import Product
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('name', 'price', 'weight')
# Убираем 'weight', добавляем 'image'
list_display = ('name', 'price', 'image')
search_fields = ('name',)