

def parse_extra_model_fields(extra_model_fields):
    '\n    Parses the value of EXTRA_MODEL_FIELDS, grouping the entries by model\n    and instantiating the extra fields. Returns a sequence of tuples of\n    the form (model_key, fields) where model_key is a pair of app_label,\n    model_name and fields is a list of (field_name, field_instance) pairs.\n    '
    fields = defaultdict(list)
    for entry in extra_model_fields:
        (model_key, field_name) = parse_field_path(entry[0])
        field_class = import_field(model_key[1])
        (field_args, field_kwargs) = entry[2:]
        try:
            field = field_class(*field_args, **field_kwargs)
        except TypeError as e:
            raise ImproperlyConfigured(("The EXTRA_MODEL_FIELDS setting contains arguments for the field '%s' which could not be applied: %s" % (entry[1], e)))
        fields[model_key].append((field_name, field))
    return fields

dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/boot/__init__.py parse_extra_model_fields/VarMisuse@44/187 `entry`->`model_key`