summaryrefslogtreecommitdiff
path: root/app/notes/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-12-14 18:44:30 -0800
committerluxagraf <sng@luxagraf.net>2017-12-14 18:44:30 -0800
commitadb5c207bea19cedc400b65bd8cd2c54ca0faba0 (patch)
tree0466a5b6d227add4c331aa73d3b16db4bc8ab7c4 /app/notes/admin.py
parent4664f2d30e11988bbbfe06c4acb93c2d2b9c7261 (diff)
simplified notes inteface
Diffstat (limited to 'app/notes/admin.py')
-rw-r--r--app/notes/admin.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
index 0135820..62a7539 100644
--- a/app/notes/admin.py
+++ b/app/notes/admin.py
@@ -2,20 +2,11 @@ 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 = 0
- max_num = 1
-
-
+@register(LuxNote)
class LuxNoteAdmin(OLAdminBase):
- inlines = [
- SyndicatedInline,
- ]
prepopulated_fields = {"slug": ('title',)}
list_display = ('slug', 'pub_date', 'location')
fieldsets = (
@@ -36,7 +27,6 @@ class LuxNoteAdmin(OLAdminBase):
)
-admin.site.register(LuxNote, LuxNoteAdmin)
class NoteAdmin(OSMGeoAdmin):