def get_model_field(model, field_name):
 fields = get_field_parts(model, field_name)
 return (fields[(-1)] if fields else None)

def get_model_field ( model , field_name ) : fields = get_field_parts ( model , field_name ) return ( fields [ ( - 1 ) ] if fields else None )
get a model field .