I want to upload a file in the admin using django-filetransfer and so far I have got as far overriding the render_change_form method in admin.ModelAdmin. What am I missing?
def render_change_form(self, request, context, add=False, change=False, form_url='', obj=None):
upload_url,upload_data = prepare_upload(request, request.path)
context['upload_url'] = upload_url
context['upload_data'] = upload_data
return admin.ModelAdmin.render_change_form(self, request, context,
add=add, change=change, form_url=upload_url, obj=obj)