I just ran into the same issue. As a work around, we've added a url override and created a redirect view that will serve the document files from s3 directly.
Here is the code that we added, in case it helps. It may not be the best solution, but it is working.
Added a views.py file (could really be any file) into our project with the following code:
from django.shortcuts import get_object_or_404
from django.views.generic import RedirectView
from wagtail.wagtaildocs.models import Document
class S3DocumentServe(RedirectView):
def get_redirect_url(self, *args, **kwargs):
document_id = kwargs['document_id']
document = get_object_or_404(Document, id=document_id)
return document.file.url
Then in urls.py, we added the url override before importing the wagtaildocs_urls:
...
from .views import S3DocumentServe
...
urlpatterns = patterns('',
...
url(r'^documents/(?P<document_id>\d+)/(.*)$', S3DocumentServe.as_view(),
name='wagtaildocs_serve'),
url(r'^documents/', include(wagtaildocs_urls)),
...
)
...
Thanks,
Caroline