def METHOD_NAME(geocode_result):
    try:
        return Council.objects.get(geography__gss=geocode_result.get_code("lad"))
    except Council.DoesNotExist:
        return Council.objects.get(geography__geography__covers=geocode_result.centroid)