예제 #1
0
    def get(self):
        query = Location.select()
        locations = []
        for location in query:
            locations.append(location.to_dict())

        return {'status': 'ok', 'locations': locations}
예제 #2
0
    def get(self):
        query = Location.select()
        locations = []
        for location in query:
            locations.append(location.to_dict())

        return {'status': 'ok', 'locations': locations}
예제 #3
0
 def get_locations(self):
     return ModelLocation.select().order_by(ModelLocation.location.asc())
예제 #4
0
파일: export.py 프로젝트: shupp/VegaDNS-API
 def get_locations(self):
     return ModelLocation.select().order_by(ModelLocation.location.asc())