예제 #1
0
파일: models.py 프로젝트: 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
예제 #2
0
파일: models.py 프로젝트: credis/pes
 def geo_point(self):
     if self.location and len(self.location) > 0:
         return loc_to_point(self.location[0])
예제 #3
0
파일: models.py 프로젝트: 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])
예제 #4
0
파일: models.py 프로젝트: 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