summaryrefslogtreecommitdiff
path: root/app/notes
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
parent4664f2d30e11988bbbfe06c4acb93c2d2b9c7261 (diff)
simplified notes inteface
Diffstat (limited to 'app/notes')
-rw-r--r--app/notes/admin.py12
-rw-r--r--app/notes/models.py1
2 files changed, 1 insertions, 12 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):
diff --git a/app/notes/models.py b/app/notes/models.py
index d59b4de..794ddfd 100644
--- a/app/notes/models.py
+++ b/app/notes/models.py
@@ -28,7 +28,6 @@ class LuxNote(models.Model):
title = models.CharField(max_length=250, null=True, blank=True)
slug = models.SlugField(unique_for_date='pub_date', blank=True)
pub_date = models.DateTimeField(default=timezone.now)
- date_last_updated = models.DateTimeField('Date', blank=True)
body_html = models.TextField(blank=True)
body_markdown = models.TextField('Note')
point = models.PointField(blank=True, null=True)