Commits

Vadim Statishin committed c3c27ba

Add skip type location

Comments (0)

Files changed (2)

geoobjects/models.py

                 return obj
         return None
 
-    def name(self, lang='en'):
+    def name(self, lang='en', skip=[]):
         return u', '.join([path.name_ru if lang == 'ru' and path.name_ru else path.name_en
-                           for path in self.get_path(False)])
+                           for path in self.get_path(False) if not path.type in skip])
 
     @cached_property
     def dump_path(self):
 
 setup(
     name='geoobjects',
-    version='0.2.5.10',
+    version='0.2.5.11',
     packages=['geoobjects', 'geoobjects.management', 'geoobjects.management.commands'],
     scripts=['scripts/geoobjects_import_mysql.sh'],
     install_requires=['django'],