summaryrefslogtreecommitdiff
path: root/app/notes
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-06-18 07:04:35 -0400
committerluxagraf <sng@luxagraf.net>2016-06-18 07:04:35 -0400
commitaa315bc4fb0b3f399a26cdefd3ee7eed195023fb (patch)
tree1426531b30dca237db6df566e95be3d65437e45b /app/notes
parentd614d7899b597042c62c0ac8c3464d68da7a258e (diff)
added syndication inline to notes
Diffstat (limited to 'app/notes')
-rw-r--r--app/notes/admin.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
index e439168..dcd3576 100644
--- a/app/notes/admin.py
+++ b/app/notes/admin.py
@@ -1,11 +1,22 @@
from django.contrib import admin
from django.contrib.gis.admin import OSMGeoAdmin
+from django.contrib.contenttypes.admin import GenericTabularInline
from notes.models import Note, LuxNote
-
+from syndication.models import SyndicatedItem
from utils.widgets import LGEntryForm, OLAdminBase
+class SyndicatedInline(GenericTabularInline):
+ model = SyndicatedItem
+ extra = 1
+ max_num = 1
+
+
class LuxNoteAdmin(OLAdminBase):
+ inlines = [
+ SyndicatedInline,
+
+ ]
prepopulated_fields = {"slug": ('title',)}
list_display = ('slug', 'pub_date', 'location')
fieldsets = (