summaryrefslogtreecommitdiff
path: root/app/notes/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/notes/admin.py')
-rw-r--r--app/notes/admin.py54
1 files changed, 7 insertions, 47 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
index 3d1d593..eafd0dc 100644
--- a/app/notes/admin.py
+++ b/app/notes/admin.py
@@ -1,21 +1,19 @@
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 notes.models import Note
from utils.widgets import LGEntryForm, OLAdminBase
-@admin.register(LuxNote)
-class LuxNoteAdmin(OLAdminBase):
+@admin.register(Note)
+class NoteAdmin(OLAdminBase):
+ form = LGEntryForm
prepopulated_fields = {"slug": ('title',)}
- list_display = ('slug', 'pub_date', 'location')
+ list_display = ('slug', 'pub_date')
fieldsets = (
('Note', {
'fields': (
('title', 'slug'),
'body_markdown',
- ('pub_date', 'status'),
- 'point'
+ 'pub_date',
),
'classes': (
'show',
@@ -26,43 +24,5 @@ class LuxNoteAdmin(OLAdminBase):
),
)
-
-
-
-class NoteAdmin(OSMGeoAdmin):
- form = LGEntryForm
- list_display = ('slug', 'date_created', 'location', 'twitter_id')
- list_filter = ('location',)
- prepopulated_fields = {"slug": ('title',)}
- fieldsets = (
- ('Note', {
- 'fields': (
- 'title',
- 'body_markdown',
- ('twitter_send', 'slug'),
- 'point'
- ),
- 'classes': (
- 'show',
- 'extrapretty',
- 'wide'
- )
- }),
- )
- # options for OSM map Using custom ESRI topo map
- default_lon = -9285175
- default_lat = 4025046
- default_zoom = 11
- units = True
- scrollable = False
- map_width = 700
- map_height = 425
- map_template = 'gis/admin/osm.html'
- openlayers_url = '/static/admin/js/OpenLayers.js'
-
class Media:
- js = (
- '/static/jquery.simplyCountable.js',
- '/static/count.js',
- )
-admin.site.register(Note, NoteAdmin)
+ js = ('image-loader.js', 'next-prev-links.js')