title: Custom Django admin site with parent url parameter
body: <p>my url pattern looks like that:
      (r'^fb/custom/(?P[a-zA-Z0-9+]*)/admin/', include(custom_admin_site.urls)),</p>
  
  <p>I overrode the admin_view methode of my admin site:</p>
  
  <pre><code>def admin_view(self, view, cacheable=False):
      def inner(request, *args, **kwargs):
          if kwargs.has_key('custom_id'):
              request.custom_id = kwargs.pop('custom_id')
          return view(request, *args, **kwargs)
      if not cacheable:
          inner = never_cache(inner)
      # We add csrf_protect here so this function can be used as a utility
      # function for any view, without having to repeat 'csrf_protect'.
      if not getattr(view, 'csrf_exempt', False):
          inner = csrf_protect(inner)
      return update_wrapper(inner, view)
  </code></pre>
  
  <p>This way I don't need the paramter custom_id in the view methods like index. My problem is that i can't use urlresolvers.reverse('custom-admin:index').
  If I use it without parameter i get this error:</p>
  
  <pre><code>Page not found. Request URL:    http://localhost:8000/fb/custom/(?P%3Ccustom_id%3E[a-zA-Z0-9%5C+]*)/admin/
  </code></pre>
  
  <p>Ok no suprise. I didn't provide the parameter custom_id. But with the paramter I get this error:</p>
  
  <pre><code>reverse() got an unexpected keyword argument 'custom_id'
  </code></pre>
  
  <p>Any idea how to solve this. I would really like to use the reverse lookup. The url template tag has the same problem.</p>