Permalink
Browse files

added keyword argument to Snapshot.save to allow not resetting dateUp…

…dated
  • Loading branch information...
1 parent 9310587 commit 2054bb2565b159f319d4b77a16a07185fa6930a4 @ekpneo ekpneo committed Aug 22, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 geocamLens/models.py
View
5 geocamLens/models.py
@@ -115,8 +115,9 @@ class Snapshot(models.Model):
# table).
img = generic.GenericForeignKey('imgType', 'imgId')
- def save(self, **kwargs):
- self.dateUpdated = datetime.datetime.utcnow()
+ def save(self, updateDate=True, **kwargs):
+ if updateDate:
+ self.dateUpdated = datetime.datetime.utcnow()
super(Snapshot, self).save(**kwargs)
def __unicode__(self):

0 comments on commit 2054bb2

Please sign in to comment.