fix typo or it will never load from local cache
This commit is contained in:
parent
dff4b7ea46
commit
0150851808
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue