diff options
Diffstat (limited to 'chimere/models.py')
-rw-r--r-- | chimere/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chimere/models.py b/chimere/models.py index 1306111..1b6ff06 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -666,6 +666,11 @@ class GeographicItem(models.Model): def geometry(self): return getattr(self, self.geom_attr).wkt + @property + def is_editable(self): + return bool(self.categories.filter(available=True, + submission=True).count()) + def text_description(self): """ Convert the html description into a text description |