src/egonomy/models.py
changeset 149 af59627418e7
parent 140 bfe995fae627
child 159 b98558f8d2c1
--- a/src/egonomy/models.py	Tue Jun 25 17:24:41 2013 +0200
+++ b/src/egonomy/models.py	Tue Jun 25 18:43:09 2013 +0200
@@ -95,6 +95,11 @@
     description = models.TextField(blank=True, null=True)
     tags = models.TextField(blank=True, null=True)
     
+    @property
+    def tag_list(self):
+        # tags in list
+        return self.tags.split(",")
+    
     
     def get_viewbox_info(self):
         if not self.coordinates or self.coordinates=="MZ" or self.coordinates=="":