From 67aeb0ae68b52442e7b35c4904ca86d74bae76ff Mon Sep 17 00:00:00 2001
From: luxagraf <sng@luxagraf.net>
Date: Tue, 9 Jan 2024 08:34:33 -0500
Subject: gtd: added admin page so I can add new Wired posts

---
 app/gtd/admin.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 app/gtd/admin.py

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',)
-- 
cgit v1.2.3