예제 #1
0
 def new_location(self, name, zone):
     location = Location(name=name, zone=zone)
     location.save()
     return location
예제 #2
0
    def create_location(self, location_code, location):
        location = Location(location_code=location_code, location=location)

        location.save()
        return location