def make_parcel_data(parcel, include_attributes=False): d = geojson_data(parcel.shape) d["properties"] = {"type": parcel.poly_type, "loc_id": parcel.loc_id} if include_attributes: d["properties"].update( {a.name: a.value for a in parcel.attributes.all()}) return d
def make_parcel_data(parcel, include_attributes=False): d = geojson_data(parcel.shape) d["properties"] = { "type": parcel.poly_type, "loc_id": parcel.loc_id } if include_attributes: d["properties"].update( {a.name: a.value for a in parcel.attributes.all()}) return d
def make_parcel_data(parcel): d = geojson_data(parcel.shape) d["properties"] = { "type": parcel.poly_type, } return d