From dee040734ccec882312fafa80e42fc2acf08a2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 22 Jun 2017 20:14:32 +0200 Subject: [PATCH] no need to cache this, we have select_related --- src/c3nav/mapdata/models/locations.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/c3nav/mapdata/models/locations.py b/src/c3nav/mapdata/models/locations.py index d2588798..5f14a466 100644 --- a/src/c3nav/mapdata/models/locations.py +++ b/src/c3nav/mapdata/models/locations.py @@ -33,7 +33,6 @@ class LocationSlug(SerializableMixin, models.Model): objects = LocationSlugManager() def get_child(self): - # todo: cache this for model in get_submodels(Location)+[LocationRedirect]: with suppress(AttributeError): return getattr(self, model._meta.default_related_name)