old_contents: from __future__ import unicode_literals
  
  from django.conf.urls import patterns, url
  
  from . import views
  
  urlpatterns = patterns('',
      url(r'^upload/election/(?P<election>[-\w]+)/post/(?P<post_id>[-\w\:]+)/$',
          views.CreateDocumentView.as_view(),
          name='upload_document_view'),
      url(r'^(?P<pk>\d+)/$',
          views.DocumentView.as_view(),
          name='uploaded_document_view'),
  )
  
new_contents: from __future__ import unicode_literals
  
  from django.conf.urls import patterns, url
  
  from . import views
  
  urlpatterns = patterns('',
      url(r'^upload/election/(?P<election>[^/]+)/post/(?P<post_id>[^/]+)/$',
          views.CreateDocumentView.as_view(),
          name='upload_document_view'),
      url(r'^(?P<pk>\d+)/$',
          views.DocumentView.as_view(),
          name='uploaded_document_view'),
  )
  
subject: Update official_documents urls.py to allow any non-slash in election IDs