fix routing from/to POIs
This commit is contained in:
parent
7857a723e8
commit
9a95faa620
1 changed files with 8 additions and 0 deletions
|
@ -229,6 +229,14 @@ class POI(SpaceGeometryMixin, SpecificLocation, models.Model):
|
||||||
result['editor_url'] = reverse('editor.pois.edit', kwargs={'space': self.space_id, 'pk': self.pk})
|
result['editor_url'] = reverse('editor.pois.edit', kwargs={'space': self.space_id, 'pk': self.pk})
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@property
|
||||||
|
def x(self):
|
||||||
|
return self.geometry.x
|
||||||
|
|
||||||
|
@property
|
||||||
|
def y(self):
|
||||||
|
return self.geometry.y
|
||||||
|
|
||||||
|
|
||||||
class Hole(SpaceGeometryMixin, models.Model):
|
class Hole(SpaceGeometryMixin, models.Model):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue