From 4b4b795bd56782ddbbecf427d0ae88b27d896ee8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 25 Oct 2013 17:36:07 -0400 Subject: [PATCH] [1.5.x] Fixed #21325 -- Added missing argument to permission_required decorator. Backport of cc2049cdd7 from master --- docs/topics/auth/default.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index a104a5c966..6914f9e6a1 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -494,7 +494,7 @@ checks to make sure the user has an email in the desired domain:: The permission_required decorator ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: permission_required([login_url=None, raise_exception=False]) +.. function:: permission_required(perm, [login_url=None, raise_exception=False]) It's a relatively common task to check whether a user has a particular permission. For that reason, Django provides a shortcut for that case: the