fix typo or it will never load from local cache

This commit is contained in:
Laura Klünder 2023-12-07 18:57:40 +01:00
parent dff4b7ea46
commit 0150851808
4 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ class RouteOptions(models.Model):
@classmethod
def get_fields(cls):
cache_key = MapUpdate.current_cache_key()
if getattr(cls.fields_cached, 'cache_key', None) != cache_key:
if getattr(cls.fields_cached, 'key', None) != cache_key:
cls.fields_cached.key = cache_key
cls.fields_cached.data = cls.build_fields()
return cls.fields_cached.data