summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)