fix fatal error when using current_cache_key as an etag func

This commit is contained in:
Laura Klünder 2017-12-04 17:41:17 +01:00
parent 1169597800
commit 46c581627f

View file

@ -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