give grid cells for spaces and areas as well
This commit is contained in:
parent
f861fecee5
commit
0ef08ad61b
3 changed files with 34 additions and 0 deletions
|
@ -126,6 +126,10 @@ class Area(SpaceGeometryMixin, SpecificLocation, models.Model):
|
|||
result = super()._serialize(**kwargs)
|
||||
return result
|
||||
|
||||
@property
|
||||
def grid_cell(self):
|
||||
return grid.get_cells_for_bounds(self.geometry.bounds) or ''
|
||||
|
||||
def details_display(self, editor_url=True, **kwargs):
|
||||
result = super().details_display(**kwargs)
|
||||
if editor_url:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue