Commits

Tim Savage committed a772609

Corrected documentation of superuser_required

  • Participants
  • Parent commits 6e49b0d

Comments (0)

Files changed (1)

docs/topics/auth.txt

 .. function:: superuser_required([login_url=None, raise_exception=False])
 
     This decorator provides a simple way to restrict access to a particular
-    view to only users who have the *is_superuser* set. Rather than using
+    view to only users who have the *is_superuser* flag set. Rather than using
     the `~django.contrib.auth.decorators.user_passes_test()` decorator
     restricting a view to staff only can be written as::
 
-        from django_extras.contrib.auth.decorators import staff_required
-        @staff_required
+        from django_extras.contrib.auth.decorators import superuser_required
+        @superuser_required
         def my_view(request):
             ...
 
     ``raise_exception`` parameter, If given, the decorator will raise
     :exc:`~django.core.exceptions.PermissionDenied`.
 
+