def new_location(self, name, zone): location = Location(name=name, zone=zone) location.save() return location
def create_location(self, location_code, location): location = Location(location_code=location_code, location=location) location.save() return location