Browse Source

Tiny fixes in documentation.

Rafał Pitoń 11 years ago
parent
commit
9f82501121
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/developers/shortcuts.rst
  2. 1 1
      docs/developers/views_errors.rst

+ 1 - 1
docs/developers/shortcuts.rst

@@ -12,7 +12,7 @@ paginate
 
 
 .. function:: paginate(object_list, page, per_page, orphans=0, allow_empty_first_page=True)
 .. function:: paginate(object_list, page, per_page, orphans=0, allow_empty_first_page=True)
 
 
-This function is a factory that validates received data and returns `Django's Page <https://docs.djangoproject.com/en/dev/topics/pagination/#page-objects>`_ object. In adition it also translates ``EmptyPage`` errors into ``Http404`` errors and validated is first page number was explictly defined in url parameter, or not.
+This function is a factory that validates received data and returns `Django's Page <https://docs.djangoproject.com/en/dev/topics/pagination/#page-objects>`_ object. In adition it also translates ``EmptyPage`` errors into ``Http404`` errors and validates if first page number was explictly defined in url parameter or not.
 
 
 ``paginate`` function has certain requirements on handling views that use it. Firstly, views with pagination should have two links instead of one::
 ``paginate`` function has certain requirements on handling views that use it. Firstly, views with pagination should have two links instead of one::
 
 

+ 1 - 1
docs/developers/views_errors.rst

@@ -17,7 +17,7 @@ Views Exceptions
 ================
 ================
 
 
 
 
-While Misago raises plenty of exceptions, only four are allowed to reach views. Two of those are django's ``Http404`` and ``PermissionDenied`` exceptions. In addition to those, Misago defines its own two exceptions that act as "messages" for it's error handler that link user clicked to get to view is not up-to-date and could use 301 request to make sure bookmarks and crawlers get clean link.
+While Misago raises plenty of exceptions, only four are allowed to leave views. Two of those are django's ``Http404`` and ``PermissionDenied`` exceptions. In addition to those, Misago defines its own two exceptions that act as "messages" for it's error handler that link user clicked to get to view is not up-to-date and could use 301 request to make sure bookmarks and crawlers get clean link.
 
 
 .. note::
 .. note::
    You should never raise those exceptions yourself. If you want to redirect user to certain page, return proper redirect response instead.
    You should never raise those exceptions yourself. If you want to redirect user to certain page, return proper redirect response instead.