Typos and missing docstrings.
This commit is contained in:
@@ -16,7 +16,7 @@ from lostplaces.models import Place
|
||||
|
||||
class IsAuthenticatedMixin(LoginRequiredMixin, View):
|
||||
'''
|
||||
A view mixin that checks wether a user is loged in or not.
|
||||
A view mixin that checks wether a user is logged in or not.
|
||||
If the user is not logged in, he gets redirected to
|
||||
the login page.
|
||||
'''
|
||||
@@ -29,9 +29,9 @@ class IsAuthenticatedMixin(LoginRequiredMixin, View):
|
||||
|
||||
class IsPlaceSubmitterMixin(UserPassesTestMixin, View):
|
||||
'''
|
||||
A view mixin that checks wethe a user is the submitter
|
||||
of a place Throws 403 if the user is not. The subclass
|
||||
has to provide a get_place method, wich returns the
|
||||
A view mixin that checks wether a user is the submitter
|
||||
of a place, throws 403 if the user is not. The subclass
|
||||
has to provide a get_place method, which returns the
|
||||
place to check.
|
||||
'''
|
||||
place_submitter_error_message = None
|
||||
|
Reference in New Issue
Block a user