first commit
This commit is contained in:
13
autoapp/admin.py
Normal file
13
autoapp/admin.py
Normal 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")
|
||||
Reference in New Issue
Block a user