diff options
Diffstat (limited to 'app/gtd/admin.py')
-rw-r--r-- | app/gtd/admin.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/gtd/admin.py b/app/gtd/admin.py new file mode 100644 index 0000000..8709f93 --- /dev/null +++ b/app/gtd/admin.py @@ -0,0 +1,18 @@ +from django.contrib import admin + +from utils.widgets import AdminImageWidget, LGEntryForm + +from .models import ( + WiredNote, + WiredPost +) +print(WiredPost) + +@admin.register(WiredPost) +class WiredPostAdmin(admin.ModelAdmin): + list_display = ('title', 'date_last_pub', 'update_frequency', 'needs_update', 'post_status') + search_fields = ['title'] + list_filter = ['post_status', 'post_type', 'update_frequency'] + + class Media: + js = ('next-prev-links.js',) |