from django.contrib import admin

from .models.category import Category
from .models.brand import Brand


class BrandAdmin(admin.StackedInline):
    """
    """

    model = Brand
    extra = 1


@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
    """
    """

    list_display = ('name', )
    search_fields = ('name', )
    inlines = [BrandAdmin, ]

from django.contrib import admin

from .models.category import Category
from .models.brand import Brand


class BrandAdmin(admin.StackedInline):
    """
    """

    model = Brand
    extra = 1


@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
    """
    """

    list_display = ('name', )
    search_fields = ('name', )
    inlines = [BrandAdmin, ]
