text: from django.contrib import admin
  from .models import CarModel, CarMake
  
  
  # Register your models here.
  
  # CarModelInline class
  class CarModelInline(admin.StackedInline):
      model = CarModel
  
  # CarModelAdmin class
  class CarModelAdmin(admin.ModelAdmin):
      fields = ['manufacturer', 'name', 'dealer_id', 'type', 'year']
  
  # CarMakeAdmin class with CarModelInline
  class CarMakeAdmin(admin.ModelAdmin):
      inlines = [CarModelInline]
  
  # Register models here
  admin.site.register(CarModel)
  admin.site.register(CarMake, CarMakeAdmin)