from django.contrib import admin
from .models import Product
class ProductAdmin(admin.ModelAdmin):
    list_display = ('name', 'dataEntryBy','created','publish','status')
    list_filter = ('status', 'created', 'publish', 'dataEntryBy')
    search_fields = ('name', 'desc')
    prepopulated_fields = {'slug': ('name',)}
    raw_id_fields = ('dataEntryBy',)
    date_hierarchy = 'publish'
    ordering = ['status', 'publish']
admin.site.register(Product, ProductAdmin)

5f9c1c1e31103250ba328b13a38ff627cd3b520e
<mask token>


class ProductAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'dataEntryBy', 'created', 'publish', 'status'
    list_filter = 'status', 'created', 'publish', 'dataEntryBy'
    search_fields = 'name', 'desc'
    prepopulated_fields = {'slug': ('name',)}
    raw_id_fields = 'dataEntryBy',
    date_hierarchy = 'publish'
    ordering = ['status', 'publish']


<mask token>

<mask token>


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'dataEntryBy', 'created', 'publish', 'status'
    list_filter = 'status', 'created', 'publish', 'dataEntryBy'
    search_fields = 'name', 'desc'
    prepopulated_fields = {'slug': ('name',)}
    raw_id_fields = 'dataEntryBy',
    date_hierarchy = 'publish'
    ordering = ['status', 'publish']


admin.site.register(Product, ProductAdmin)

from django.contrib import admin
from .models import Product


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'dataEntryBy', 'created', 'publish', 'status'
    list_filter = 'status', 'created', 'publish', 'dataEntryBy'
    search_fields = 'name', 'desc'
    prepopulated_fields = {'slug': ('name',)}
    raw_id_fields = 'dataEntryBy',
    date_hierarchy = 'publish'
    ordering = ['status', 'publish']


admin.site.register(Product, ProductAdmin)

from django.contrib import admin
from .models import Product
class ProductAdmin(admin.ModelAdmin):
    list_display = ('name', 'dataEntryBy','created','publish','status')
    list_filter = ('status', 'created', 'publish', 'dataEntryBy')
    search_fields = ('name', 'desc')
    prepopulated_fields = {'slug': ('name',)}
    raw_id_fields = ('dataEntryBy',)
    date_hierarchy = 'publish'
    ordering = ['status', 'publish']
admin.site.register(Product, ProductAdmin)
