from django.contrib import admin # Register your models here. from .models import Auto @admin.register(Auto) class AutoAdmin(admin.ModelAdmin): list_display = ("brand", "model", "year", "color", "created_at") list_filter = ("brand", "year", "color") search_fields = ("brand", "model") ordering = ("-year", "brand")