Esempio n. 1
0
File: models.py Progetto: 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
Esempio n. 2
0
File: models.py Progetto: credis/pes
 def geo_point(self):
     if self.location and len(self.location) > 0:
         return loc_to_point(self.location[0])
Esempio n. 3
0
File: models.py Progetto: 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])
Esempio n. 4
0
File: models.py Progetto: 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