diff options
author | luxagraf <sng@luxagraf.net> | 2024-01-09 08:34:33 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-01-09 08:34:33 -0500 |
commit | 67aeb0ae68b52442e7b35c4904ca86d74bae76ff (patch) | |
tree | 90c2d37275a45ddc6fa485d6dc52241aacdfc6fd /app | |
parent | 59096d496c4dcca508a2d2c9715aeeefbd3212ac (diff) |
gtd: added admin page so I can add new Wired posts
Diffstat (limited to 'app')
-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',) |