summaryrefslogtreecommitdiff
path: root/apps/photos/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/photos/models.py')
-rw-r--r--apps/photos/models.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/photos/models.py b/apps/photos/models.py
index a103938..074016a 100644
--- a/apps/photos/models.py
+++ b/apps/photos/models.py
@@ -155,12 +155,14 @@ class Photo(models.Model):
def comment_period_open(self):
return self.enable_comments and datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date
- """
+
def save(self):
- self.lat = self.gps.split(',')[0]
- self.lon = self.gps.split(',')[1]
+ self.slideshowimage_width = self.get_width
+ self.slideshowimage_height = self.get_height
+ self.slideshowimage_margintop = self.get_margin_top
+ self.slideshowimage_marginleft = self.get_margin_left
super(Photo, self).save()
- """
+
class PhotoGallery(models.Model):
set_id = models.CharField(blank=True, max_length=300)
set_title = models.CharField(blank=True, max_length=300)