title: Does using Django "is_superuser" require additional URL?
body: <p>I'm creating an administrative interface/dashboard for a Django 1.7 project.  Instead of creating a new admin application from scratch, I'm trying to use Django's built-in admin site.  I have "root" (superuser) and "reviewer" (non-superuser) staff accounts.  Both accounts are in the default "admin" group.  Both accounts can log in to the admin site but some pages are accessible by both the root and reviewer accounts while access to others is limited to the superuser.  I've created the two following views:</p>
  
  <pre><code># mysite/apps/admin/views.py
  from django.shortcuts import render
  from django.contrib.auth.decorators import user_passes_test
  
  @user_passes_test(lambda u: u.is_staff)
  def all_admins(request, template):
      return render(request, template)
  
  @user_passes_test(lambda u: u.is_superuser)
  def superuser_only(request, template):
      return render(request, template)
  </code></pre>
  
  <p>The problem I'm running into is that if I log is using the reviewer account and click the anchor for the "superuser_only" page, I get the following error:</p>
  
  <pre><code>Page not found (404)
      Request Method: GET
        Request URL:  http://localhost:8001/accounts/login/?next=/admin/super/
  Using the URLconf defined in conf.urls, Django tried these URL patterns, in this order:
  ^admin/
  ^admin/all_admins/$ [name='all-admins']
  ^admin/super/$ [name='superuser-only']
  The current URL, accounts/login/, didn't match any of these.
  </code></pre>
  
  <p>Is there something else I need to do to implement this superuser-only view and template so that this error doesn't occur if the reviewer clicks the link?</p>
  
  <p>I followed the <a href="https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#overriding-admin-templates" rel="nofollow">Django docs instructions</a> and created my own copies of Django's base.html, base_site.html, and index.html templates in my mysite/apps/admin/templates/admin directory and then added the "all_admins" and "superuser_only" anchors to the bottom of the index.html page.</p>
  
  <p>Here are my files:</p>
  
  <pre><code># part of mysite/mysite/settings.py
  TEMPLATE_DIRS = (
  os.path.join(BASE_DIR, 'apps/admin/templates'),
  os.path.join(BASE_DIR, 'apps/admin/templates/admin'),)
  
  # mysite/mysite/urls.py
  from django.conf.urls import patterns, include, url
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^admin/', include(admin.site.urls)),
  
      url(r'^admin/all_admins/$',
          'apps.admin.views.all_admins',
          {'template': 'all_admins.html'},
          name='all-admins'),
  
      url(r'^admin/super/$',
          'apps.admin.views.superuser_only',
          {'template': 'superuser_only.html'},
          name='superuser-only'),
  )
  </code></pre>