Skip to content

Commit

Permalink
Update README.rst (#464)
Browse files Browse the repository at this point in the history
Modified usage as per changes in api
  • Loading branch information
jithintomz authored and lukaszb committed Nov 2, 2016
1 parent 7c08e9c commit 091a6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Lets start really quickly::
>>> jack.has_perm('change_group', admins)
False
>>> from guardian.models import UserObjectPermission
>>> UserObjectPermission.objects.assign_perm('change_group', user=jack, obj=admins)
>>> UserObjectPermission.objects.assign_perm('change_group', jack, obj=admins)
<UserObjectPermission: admins | jack | change_group>
>>> jack.has_perm('change_group', admins)
True
Expand Down

0 comments on commit 091a6f5

Please sign in to comment.