8 lines
242 B
Python
8 lines
242 B
Python
from django.contrib import admin
|
|
from .models import AllowedColor
|
|
|
|
@admin.register(AllowedColor)
|
|
class AllowedColorAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'allowed')
|
|
list_editable = ('allowed',)
|
|
list_filter = ('allowed',) |