Skip to content

Commit

Permalink
fix group permissions example (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
caymard authored and ad-m committed Dec 15, 2016
1 parent f0b9743 commit 92f9e81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/userguide/assign.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ Another example:
>>> userA.has_perm('change_company', companyB)
False
>>> userB = User.objects.create(username="User B")
>>> userB.groups.add(companyUserGroupB)
>>> userB.has_perm('change_company', companyA)
False
>>> userA.has_perm('change_company', companyB)
>>> userB.has_perm('change_company', companyB)
True
Assigning Permissions inside Signals
Expand Down

0 comments on commit 92f9e81

Please sign in to comment.