from django.contrib import admin
from .models import Client, Brand

@admin.register(Client)
class ClientAdmin(admin.ModelAdmin):
    list_display = ('name', 'created_at', 'updated_at')
    search_fields = ('name',)

@admin.register(Brand)
class BrandAdmin(admin.ModelAdmin):
    list_display = ('name', 'client', 'created_at', 'updated_at')
    search_fields = ('name', 'client__name')
    list_filter = ('client',)