def get_plugin_media_path(instance, filename):
    '\n    Django 1.7 requires that unbound function used in fields\' definitions are 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 instance.get_media_path(filename)
Django 1.7 requires that unbound function used in fields' definitions are defined outside the parent class
 (see https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-values)
This function is used withing field definition:

    file = models.FileField(_("file"), upload_to=get_plugin_media_path)

and it invokes the bounded method on the given instance at runtime
def get_plugin_media_path(instance, filename):
    '\n    Django 1.7 requires that unbound function used in fields\' definitions are 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 instance.get_media_path(filename)