summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-07-27 05:44:49 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-07-27 05:44:49 +0000
commit8f978c65b17f8c41d977b60bf2530e99d76dd591 (patch)
tree5743e20272d7362f3873253c5f537aee6204c688 /apps
parentb56d56ad83c9f0ff14aafa41110457febd7788cd (diff)
fixed some bugs in the photo galleries
Diffstat (limited to 'apps')
-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)