def get_plugin_media_path(instance, filename):
 return instance.get_media_path(filename)

def get_plugin_media_path ( instance , filename ) : return instance . get_media_path ( filename )
django requires that unbound function used in fields definitions to be defined outside the parent class .