def split_model_kwargs(kw):
from collections import defaultdict<EOL>model_fields = {}<EOL>fields_agrs = defaultdict(lambda : {})<EOL>for key in kw.keys():<EOL><INDENT>if '<STR_LIT>' in key:<EOL><INDENT>field, _, subfield = key.partition('<STR_LIT>')<EOL>fields_agrs[field][subfield] = kw[key]<EOL><DEDENT>else:<EOL><INDENT>model_fields[key] = kw[key]<EOL><DEDENT><DEDENT>return model_fields, fields_agrs<EOL>
django_any birds language parser