update changeset cache keys
This commit is contained in:
parent
00a2366ae2
commit
c85bd98faf
1 changed files with 2 additions and 6 deletions
|
@ -413,17 +413,13 @@ class ChangeSet(models.Model):
|
|||
|
||||
@property
|
||||
def updates_cache_key(self):
|
||||
pk, mapupdate = MapUpdate.last_update()
|
||||
last_update = self.created if self.last_update_id is None else self.last_update.datetime
|
||||
return (MapUpdate.cache_key() + '_' + int_to_base36(self.last_update_id or 0) + '_' +
|
||||
int_to_base36(int(make_naive(last_update).timestamp())))
|
||||
return (int_to_base36(self.last_update_id or 0)+'_'+int_to_base36(int(make_naive(last_update).timestamp())))
|
||||
|
||||
@property
|
||||
def changes_cache_key(self):
|
||||
pk, mapupdate = MapUpdate.last_update()
|
||||
last_change = self.created if self.last_change_id is None else self.last_change.datetime
|
||||
return (MapUpdate.cache_key() + '_' + int_to_base36(self.last_change_id or 0) + '_' +
|
||||
int_to_base36(int(make_naive(last_change).timestamp())))
|
||||
return (int_to_base36(self.last_change_id or 0)+'_'+int_to_base36(int(make_naive(last_change).timestamp())))
|
||||
|
||||
def get_absolute_url(self):
|
||||
if self.pk is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue