it's _name_cache not name_cache

This commit is contained in:
Laura Klünder 2017-11-27 15:39:42 +01:00
parent 5f2ca60432
commit dfe7d10574
3 changed files with 6 additions and 6 deletions

View file

@ -65,7 +65,7 @@ class LevelGeometryMixin(GeometryMixin):
@property
def subtitle(self):
base_subtitle = super().subtitle
level = getattr(self, 'level_cache', None)
level = getattr(self, '_level_cache', None)
if level is not None:
return format_lazy(_('{category}, {level}'),
category=base_subtitle,