Ejemplo n.º 1
0
Archivo: models.py Proyecto: credis/pes
 def geo_point(self):
     if self.location and len(self.location) > 0:
         return  loc_to_point(self.location[0])
     elif self.organization:
         return self.organization.geo_point
Ejemplo n.º 2
0
Archivo: models.py Proyecto: credis/pes
 def geo_point(self):
     if self.location and len(self.location) > 0:
         return loc_to_point(self.location[0])
Ejemplo n.º 3
0
Archivo: models.py Proyecto: credis/pes
 def geo_point(self):
     if self.pref_address:
         return addr_to_point(self.pref_address)
     elif self.location and len(self.location) > 0:
         return loc_to_point(self.location[0])
Ejemplo n.º 4
0
Archivo: models.py Proyecto: credis/pes
 def geo_point(self):
     if self.location and len(self.location) > 0:
         return  loc_to_point(self.location[0])
     elif self.publisher:
         return self.publisher.geo_point