Spaces:
Sleeping
Sleeping
File size: 420 Bytes
0bd6e09 f87b88a 0bd6e09 f87b88a 0bd6e09 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from django.contrib import admin
from .models import Products, Categories
from import_export.admin import ExportActionMixin
class ProductAdmin(ExportActionMixin, admin.ModelAdmin):
list_display = ('name', 'score','link','category','terms')
search_fields = ['name', 'score','link','category__name','terms']
# Register your models here.
admin.site.register(Products,ProductAdmin)
admin.site.register(Categories)
|