show grid suqares in details_display
This commit is contained in:
parent
1528e66758
commit
fc0f35eb25
1 changed files with 5 additions and 0 deletions
|
@ -157,6 +157,11 @@ class SpecificLocation(Location, models.Model):
|
|||
for group in self.groups.all():
|
||||
groupcategories.setdefault(group.category, []).append(group)
|
||||
|
||||
grid_cell = self.grid_cell
|
||||
if grid_cell is not None:
|
||||
grid_square_title = (_('Grid Squares') if grid_cell and '-' in grid_cell else _('Grid Square'))
|
||||
result['display'].insert(3, (grid_square_title, grid_cell or None))
|
||||
|
||||
for category, groups in sorted(groupcategories.items(), key=lambda item: item[0].priority):
|
||||
result['display'].insert(3, (
|
||||
category.title if category.single else category.title_plural,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue