summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-09-29 13:05:20 -0500
committerluxagraf <sng@luxagraf.net>2017-09-29 13:05:20 -0500
commit44f53429a7d27f45a6d19236b13493718273fe3a (patch)
treef5b8ba07c0ad02eb44c7764903f9f973b1a89da4
parentbe3073fd769d79b62e2dc4a3b099213ef985e307 (diff)
made location list editable
-rw-r--r--app/photos/admin.py1
-rw-r--r--app/photos/models.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/photos/admin.py b/app/photos/admin.py
index fbedc73..3211a06 100644
--- a/app/photos/admin.py
+++ b/app/photos/admin.py
@@ -29,6 +29,7 @@ class LuxImageAdmin(OSMGeoAdmin):
list_display = ('pk', 'admin_thumbnail', 'pub_date', 'location')
list_filter = ('pub_date', 'location')
search_fields = ['title', 'caption']
+ list_editable = ('location',)
# Options for OSM map Using custom ESRI topo map
default_lon = -9285175
default_lat = 4025046
diff --git a/app/photos/models.py b/app/photos/models.py
index 0d123c3..039ce47 100644
--- a/app/photos/models.py
+++ b/app/photos/models.py
@@ -172,7 +172,7 @@ def post_save_events(sender, update_fields, created, instance, **kwargs):
img = Image.open(instance.image.path)
instance.height = img.height
instance.width = img.width
- instance = readexif(instance)
+ #instance = readexif(instance)
post_save.disconnect(post_save_events, sender=LuxImage)
instance.save()
post_save.connect(post_save_events, sender=LuxImage)