Skip to content
Browse files

Fix spelling errors in doc-strings.

  • Loading branch information...
1 parent 8217b01 commit 67937c9b69a28aeddfb67c8f9688fd731f4c054e @markotibold markotibold committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/code-examples/permission_class.py
View
6 docs/code-examples/permission_class.py
@@ -33,8 +33,8 @@ class CustomPermissions(Permissions):
def __init__(self):
"""
- Since guardian does not delete permission objects, when the objects that
- they pont to are deleted. We must take care of deleting them our selves.
+ Since guardian does not delete permission-objects, when the objects that
+ they point to are deleted, we must take care of deleting them our selves.
See http://packages.python.org/django-guardian/userguide/caveats.html?highlight=caveat
"""
pre_delete.connect(remove_obj_perms_connected_with_object, sender=Image)
@@ -60,7 +60,7 @@ def can_edit(self, user, obj):
def can_move_page(self, user, page):
"""
- A user with chnange-permissions is allowed to move the page.
+ A user with change-permissions is allowed to move the page.
A superuser always has all permissions as far as guardian is concerned.
"""
return 'change_page' in get_perms(user, page)

0 comments on commit 67937c9

Please sign in to comment.
Something went wrong with that request. Please try again.