old_contents: """
  URL mappings for the FOIA application
  """
  
  from django.conf.urls.defaults import patterns, url
  
  from foia import views
  from foia.feeds import LatestSubmittedRequests, LatestDoneRequests
  
  foia_url = r'(?P<jurisdiction>[\w\d_-]+)/(?P<slug>[\w\d_-]+)/(?P<idx>\d+)'
  
  urlpatterns = patterns('',
      url(r'^list/$',                     views.list_, name='foia-list'),
      url(r'^list/user/(?P<user_name>[\w\d_]+)/$',
                                          views.list_by_user, name='foia-list-user'),
      url(r'^list/(?P<sort_order>asc|desc)/(?P<field>[\w]+)/$',
                                          views.sorted_list, name='foia-sorted-list'),
      url(r'^new/$',                      views.create,
                                          name='foia-create'),
      url(r'^view/%s/$' % foia_url,       views.detail, name='foia-detail'),
      url(r'^view/%s/doc/(?P<page>\d+)/$' % foia_url,
                                          views.document_detail, name='foia-doc-detail'),
      url(r'^update/$',                   views.update_list, name='foia-update-list'),
      url(r'^feeds/submitted/$',          login_required(LatestSubmittedRequests()), name='foia-submitted-feed'),
      url(r'^feeds/completed/$',          login_required(LatestDoneRequests()), name='foia-done-feed'),
      url(r'^update/%s/$' % foia_url,     views.update, name='foia-update'),
      url(r'^delete/%s/$' % foia_url,     views.delete, name='foia-delete'),
  )
  
new_contents: """
  URL mappings for the FOIA application
  """
  
  from django.conf.urls.defaults import patterns, url
  from django.contrib.auth.decorators import login_required
  
  from foia import views
  from foia.feeds import LatestSubmittedRequests, LatestDoneRequests
  
  foia_url = r'(?P<jurisdiction>[\w\d_-]+)/(?P<slug>[\w\d_-]+)/(?P<idx>\d+)'
  
  urlpatterns = patterns('',
      url(r'^list/$',                     views.list_, name='foia-list'),
      url(r'^list/user/(?P<user_name>[\w\d_]+)/$',
                                          views.list_by_user, name='foia-list-user'),
      url(r'^list/(?P<sort_order>asc|desc)/(?P<field>[\w]+)/$',
                                          views.sorted_list, name='foia-sorted-list'),
      url(r'^new/$',                      views.create,
                                          name='foia-create'),
      url(r'^view/%s/$' % foia_url,       views.detail, name='foia-detail'),
      url(r'^view/%s/doc/(?P<page>\d+)/$' % foia_url,
                                          views.document_detail, name='foia-doc-detail'),
      url(r'^update/$',                   views.update_list, name='foia-update-list'),
      url(r'^feeds/submitted/$',          login_required(LatestSubmittedRequests()), name='foia-submitted-feed'),
      url(r'^feeds/completed/$',          login_required(LatestDoneRequests()), name='foia-done-feed'),
      url(r'^update/%s/$' % foia_url,     views.update, name='foia-update'),
      url(r'^delete/%s/$' % foia_url,     views.delete, name='foia-delete'),
  )
  
subject: add needed import