def parse_field_path(field_path):
 (model_path, field_name) = field_path.rsplit(u'.', 1)
 (app_name, model_name) = model_path.split(u'.models.')
 (_, app_label) = app_name.rsplit(u'.', 1)
 return ((app_label, model_name.lower()), field_name)

def parse_field_path ( field_path ) : ( model_path , field_name ) = field_path . rsplit ( u'.' , 1 ) ( app_name , model_name ) = model_path . split ( u'.models.' ) ( _ , app_label ) = app_name . rsplit ( u'.' , 1 ) return ( ( app_label , model_name . lower ( ) ) , field_name )
take a path to a field like "mezzanine .