remove references to compiled_room and compiled_area

This commit is contained in:
Laura Klünder 2017-07-11 19:05:23 +02:00
parent 2fa482d9fd
commit 65433894ac

View file

@ -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)+')'