From 65433894ac1592528306ceec121410f6dc0cb545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 11 Jul 2017 19:05:23 +0200 Subject: [PATCH] remove references to compiled_room and compiled_area --- src/c3nav/mapdata/models/locations.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/c3nav/mapdata/models/locations.py b/src/c3nav/mapdata/models/locations.py index 51dff886..935e1a75 100644 --- a/src/c3nav/mapdata/models/locations.py +++ b/src/c3nav/mapdata/models/locations.py @@ -192,8 +192,6 @@ class LocationGroup(Location, models.Model): def _serialize(self, **kwargs): result = super()._serialize(**kwargs) result['category'] = self.category_id - result['compiled_room'] = self.compiled_room - result['compiled_area'] = self.compiled_area return result @property @@ -207,10 +205,6 @@ class LocationGroup(Location, models.Model): attributes.append(_('color')) if not attributes: attributes.append(_('internal')) - if self.compiled_room: - attributes.append(_('comp. room')) - if self.compiled_area: - attributes.append(_('comp. area')) return self.title + ' ('+', '.join(str(s) for s in attributes)+')'