Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 277 Bytes
from django.contrib import admin
from flatblocks.models import FlatBlock
class FlatBlockAdmin(admin.ModelAdmin):
ordering = ['slug', ]
list_display = ('slug', 'header')
search_fields = ('slug', 'header', 'content')
admin.site.register(FlatBlock, FlatBlockAdmin)
Jump to Line
Something went wrong with that request. Please try again.