remove references to compiled_room and compiled_area
This commit is contained in:
parent
2fa482d9fd
commit
65433894ac
1 changed files with 0 additions and 6 deletions
|
@ -192,8 +192,6 @@ class LocationGroup(Location, models.Model):
|
||||||
def _serialize(self, **kwargs):
|
def _serialize(self, **kwargs):
|
||||||
result = super()._serialize(**kwargs)
|
result = super()._serialize(**kwargs)
|
||||||
result['category'] = self.category_id
|
result['category'] = self.category_id
|
||||||
result['compiled_room'] = self.compiled_room
|
|
||||||
result['compiled_area'] = self.compiled_area
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -207,10 +205,6 @@ class LocationGroup(Location, models.Model):
|
||||||
attributes.append(_('color'))
|
attributes.append(_('color'))
|
||||||
if not attributes:
|
if not attributes:
|
||||||
attributes.append(_('internal'))
|
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)+')'
|
return self.title + ' ('+', '.join(str(s) for s in attributes)+')'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue