from django.contrib import admin
from .models import Product, Category, ProductReview, WishList, WishListItem


class ProductAdmin(admin.ModelAdmin):
    list_display = (
        'sku',
        'name',
        'rate',
        'image',
    )

    ordering = ['sku', ]


class CategoryAdmin(admin.ModelAdmin):
    list_display = (
        'friendly_name',
        'name',
    )


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = (
        'content',
        'date',
        'rate',
        'user',
    )


class WishlistAdmin(admin.ModelAdmin):
    list_display = (
        'user',
        'date_added',
    )


class WishListItemAdmin(admin.ModelAdmin):
    list_display = (
        'wishlist',
        'product',
    )


admin.site.register(Product, ProductAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.register(ProductReview, ProductReviewAdmin)
admin.site.register(WishList, WishlistAdmin)
admin.site.register(WishListItem, WishListItemAdmin)

d814a5c3a8f9d1ed683c40ff2baaeda61c7c2c68
<mask token>


class CategoryAdmin(admin.ModelAdmin):
    list_display = 'friendly_name', 'name'


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = 'content', 'date', 'rate', 'user'


class WishlistAdmin(admin.ModelAdmin):
    list_display = 'user', 'date_added'


class WishListItemAdmin(admin.ModelAdmin):
    list_display = 'wishlist', 'product'


<mask token>

<mask token>


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


class CategoryAdmin(admin.ModelAdmin):
    list_display = 'friendly_name', 'name'


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = 'content', 'date', 'rate', 'user'


class WishlistAdmin(admin.ModelAdmin):
    list_display = 'user', 'date_added'


class WishListItemAdmin(admin.ModelAdmin):
    list_display = 'wishlist', 'product'


<mask token>

<mask token>


class ProductAdmin(admin.ModelAdmin):
    list_display = 'sku', 'name', 'rate', 'image'
    ordering = ['sku']


class CategoryAdmin(admin.ModelAdmin):
    list_display = 'friendly_name', 'name'


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = 'content', 'date', 'rate', 'user'


class WishlistAdmin(admin.ModelAdmin):
    list_display = 'user', 'date_added'


class WishListItemAdmin(admin.ModelAdmin):
    list_display = 'wishlist', 'product'


admin.site.register(Product, ProductAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.register(ProductReview, ProductReviewAdmin)
admin.site.register(WishList, WishlistAdmin)
admin.site.register(WishListItem, WishListItemAdmin)

from django.contrib import admin
from .models import Product, Category, ProductReview, WishList, WishListItem


class ProductAdmin(admin.ModelAdmin):
    list_display = 'sku', 'name', 'rate', 'image'
    ordering = ['sku']


class CategoryAdmin(admin.ModelAdmin):
    list_display = 'friendly_name', 'name'


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = 'content', 'date', 'rate', 'user'


class WishlistAdmin(admin.ModelAdmin):
    list_display = 'user', 'date_added'


class WishListItemAdmin(admin.ModelAdmin):
    list_display = 'wishlist', 'product'


admin.site.register(Product, ProductAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.register(ProductReview, ProductReviewAdmin)
admin.site.register(WishList, WishlistAdmin)
admin.site.register(WishListItem, WishListItemAdmin)

from django.contrib import admin
from .models import Product, Category, ProductReview, WishList, WishListItem


class ProductAdmin(admin.ModelAdmin):
    list_display = (
        'sku',
        'name',
        'rate',
        'image',
    )

    ordering = ['sku', ]


class CategoryAdmin(admin.ModelAdmin):
    list_display = (
        'friendly_name',
        'name',
    )


class ProductReviewAdmin(admin.ModelAdmin):
    list_display = (
        'content',
        'date',
        'rate',
        'user',
    )


class WishlistAdmin(admin.ModelAdmin):
    list_display = (
        'user',
        'date_added',
    )


class WishListItemAdmin(admin.ModelAdmin):
    list_display = (
        'wishlist',
        'product',
    )


admin.site.register(Product, ProductAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.register(ProductReview, ProductReviewAdmin)
admin.site.register(WishList, WishlistAdmin)
admin.site.register(WishListItem, WishListItemAdmin)
