text: from django.contrib import admin
  
  from shop.models.category import Category
  from shop.models.product import Product
  
  # Register your models here.
  @admin.register(Category)
  class CategoryAdmin(admin.ModelAdmin):
      list_display = ['name', 'slug']
      prepopulated_fields = {'slug': ('name',)}
  
  
  @admin.register(Product)
  class ProductAdmin(admin.ModelAdmin):
      list_display = ['name', 'slug', 'price', 'is_available', 'created', 'updated']
      list_filter = ['is_available', 'created', 'updated']
      list_editable = ['price', 'is_available']
  
      prepopulated_fields = {'slug': ('name',)}
  