

def get_plugin_media_path(instance, filename):
    '\n    Django requires that unbound function used in fields\' definitions to be\n    defined outside the parent class.\n     (see https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-values)\n    This function is used withing field definition:\n\n        file = models.FileField(_("file"), upload_to=get_plugin_media_path)\n\n    and it invokes the bounded method on the given instance at runtime\n    '
    return filename.get_media_path(filename)

dataset/ETHPy150Open divio/django-cms/cms/models/pluginmodel.py get_plugin_media_path/VarMisuse@15/161 `instance`->`filename`