fix fatal error when using current_cache_key as an etag func
@@ -63,11 +63,11 @@ class MapUpdate(models.Model):
return self.build_cache_key(self.pk, int(make_naive(self.datetime).timestamp()))
@classmethod
- def current_cache_key(cls):
+ def current_cache_key(cls, request=None):
return cls.build_cache_key(*cls.last_update())
@classmethod
- def current_processed_cache_key(cls):
+ def current_processed_cache_key(cls, request=None):
return cls.build_cache_key(*cls.last_processed_update())
@staticmethod
