summaryrefslogtreecommitdiff
path: root/app/notes/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-25 08:41:56 -0400
committerluxagraf <sng@luxagraf.net>2015-10-25 08:41:56 -0400
commit280ccc3920b9c761c3911cf7e4d5c40555c37ce9 (patch)
tree8df8a50a97093444990594ffad56da423111dab2 /app/notes/admin.py
parentf03cf2d8ad179e1a5f672b7f719b80252a788719 (diff)
added prepopulate to note slugfield admin, fixed bug in blog imports and updated note build.py to work with djanog 1.9
Diffstat (limited to 'app/notes/admin.py')
-rw-r--r--app/notes/admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
index ad3e84b..794e882 100644
--- a/app/notes/admin.py
+++ b/app/notes/admin.py
@@ -16,6 +16,7 @@ class NoteAdmin(OSMGeoAdmin):
form = NoteModelForm
list_display = ('slug', 'date_created', 'location', 'twitter_id')
list_filter = ('location',)
+ prepopulated_fields = {"slug": ('title',)}
fieldsets = (
('Note', {
'fields': (