From 46c581627f706622660f515c44b6a03b9914a530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 4 Dec 2017 17:41:17 +0100 Subject: [PATCH] fix fatal error when using current_cache_key as an etag func --- src/c3nav/mapdata/models/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/mapdata/models/update.py b/src/c3nav/mapdata/models/update.py index 3245a547..bba543a9 100644 --- a/src/c3nav/mapdata/models/update.py +++ b/src/c3nav/mapdata/models/update.py @@ -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