first commit

This commit is contained in:
2026-02-22 12:29:18 +05:00
commit d34447d322
40 changed files with 585 additions and 0 deletions

13
autoapp/admin.py Normal file
View File

@@ -0,0 +1,13 @@
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")