]>
git.p6c8.net - pcdenotes.git/blob - notes/admin.py
2dd4171e9e26ad0d7436d52a29b4d334121d2133
1 from django
.contrib
import admin
2 from .models
import Note
4 # Register your models here.
6 class NoteAdmin(admin
.ModelAdmin
):
7 list_display
= ('title', 'status',)
8 list_filter
= ('status',)
9 search_fields
= ('title', 'content',)
10 prepopulated_fields
= {'slug': ('title',)}
12 admin
.site
.register(Note
, NoteAdmin
)
patrick-canterino.de