fix fatal error when using current_cache_key as an etag func
This commit is contained in:
parent
1169597800
commit
46c581627f
1 changed files with 2 additions and 2 deletions
|
@ -63,11 +63,11 @@ class MapUpdate(models.Model):
|
||||||
return self.build_cache_key(self.pk, int(make_naive(self.datetime).timestamp()))
|
return self.build_cache_key(self.pk, int(make_naive(self.datetime).timestamp()))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def current_cache_key(cls):
|
def current_cache_key(cls, request=None):
|
||||||
return cls.build_cache_key(*cls.last_update())
|
return cls.build_cache_key(*cls.last_update())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def current_processed_cache_key(cls):
|
def current_processed_cache_key(cls, request=None):
|
||||||
return cls.build_cache_key(*cls.last_processed_update())
|
return cls.build_cache_key(*cls.last_processed_update())
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue