Commits

Tim Savage  committed ba152ef Merge

Merged doc updates

  • Participants
  • Parent commits 68e21e9, a772609

Comments (0)

Files changed (1)

File 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):
             ...