(location_id, domain=None)
Drop-in replacement for `Location.get`, but returns a SQLLocation
Drop-in replacement for `Location.get`, but returns a SQLLocation
Drop - in replacement for Location . get but returns a SQLLocation
def get_location(location_id, domain=None):
    """Drop-in replacement for `Location.get`, but returns a SQLLocation"""
    if domain:
        return SQLLocation.objects.get(domain=domain, location_id=location_id)
    else:
        return SQLLocation.objects.get(location_id=location_id)
def get_location ( location_id , domain = None ) : if domain : return SQLLocation . objects . get ( domain = domain , location_id = location_id ) else : return SQLLocation . objects . get ( location_id = location_id )