from django.contrib import admin

from product.models import PrAttribute, Product, Media, Star, Comment


class PrAttributeInline(admin.TabularInline):
    model = PrAttribute


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = ('name', 'value')


class ProductAdmin(admin.ModelAdmin):
    list_display = ('name', 'price', 'category', 'available', 'id')
    inlines = (PrAttributeInline, MediaInline)


admin.site.register(Product, ProductAdmin)
admin.site.register(Star)
admin.site.register(Comment)
admin.site.register(Media)
admin.site.register(PrAttribute, PrAttributeAdmin)
d34665b5f806630b3a4b28f9ee183884945fe9fe
<mask token>


class PrAttributeInline(admin.TabularInline):
    <mask token>


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = 'name', 'value'


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'price', 'category', 'available', 'id'
    inlines = PrAttributeInline, MediaInline


<mask token>

<mask token>


class PrAttributeInline(admin.TabularInline):
    model = PrAttribute


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = 'name', 'value'


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'price', 'category', 'available', 'id'
    inlines = PrAttributeInline, MediaInline


<mask token>

<mask token>


class PrAttributeInline(admin.TabularInline):
    model = PrAttribute


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = 'name', 'value'


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'price', 'category', 'available', 'id'
    inlines = PrAttributeInline, MediaInline


admin.site.register(Product, ProductAdmin)
admin.site.register(Star)
admin.site.register(Comment)
admin.site.register(Media)
admin.site.register(PrAttribute, PrAttributeAdmin)

from django.contrib import admin
from product.models import PrAttribute, Product, Media, Star, Comment


class PrAttributeInline(admin.TabularInline):
    model = PrAttribute


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = 'name', 'value'


class ProductAdmin(admin.ModelAdmin):
    list_display = 'name', 'price', 'category', 'available', 'id'
    inlines = PrAttributeInline, MediaInline


admin.site.register(Product, ProductAdmin)
admin.site.register(Star)
admin.site.register(Comment)
admin.site.register(Media)
admin.site.register(PrAttribute, PrAttributeAdmin)

from django.contrib import admin

from product.models import PrAttribute, Product, Media, Star, Comment


class PrAttributeInline(admin.TabularInline):
    model = PrAttribute


class MediaInline(admin.TabularInline):
    model = Media


class PrAttributeAdmin(admin.ModelAdmin):
    list_display = ('name', 'value')


class ProductAdmin(admin.ModelAdmin):
    list_display = ('name', 'price', 'category', 'available', 'id')
    inlines = (PrAttributeInline, MediaInline)


admin.site.register(Product, ProductAdmin)
admin.site.register(Star)
admin.site.register(Comment)
admin.site.register(Media)
admin.site.register(PrAttribute, PrAttributeAdmin)