Skip to content

Commit

Permalink
no need to update data that will be overwritten later
Browse files Browse the repository at this point in the history
  • Loading branch information
sorl committed Feb 3, 2011
1 parent 177c53e commit ce9f22e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pgindex/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ class Index(models.Model):
content_object = generic.GenericForeignKey()

def save(self, **kwargs):
ts = self.ts
self.ts = None
super(Index, self).save(**kwargs)
self.set_ts(self.ts)
self.set_ts(ts)

def set_ts(self, ts):
"""
Expand Down

0 comments on commit ce9f22e

Please sign in to comment.