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

patrick-canterino.de