Browse Source

Another fix to code blocks.

Rafał Pitoń 11 years ago
parent
commit
6bfa71ccaa
2 changed files with 3 additions and 4 deletions
  1. 2 2
      docs/shortcuts.rst
  2. 1 2
      docs/thread_store.rst

+ 2 - 2
docs/shortcuts.rst

@@ -14,9 +14,9 @@ check_object_slug
 
 
 This function compares model instance's "slug" attribute against user-friendly slug that was passed as link parameter. If model's slug attribute is different this function, :py:class:`misago.views.OutdatedSlug` is raised. This exception is then captured by Misago's exception handler which makes Misago return permanent (http 301) redirect to client with valid link.
 This function compares model instance's "slug" attribute against user-friendly slug that was passed as link parameter. If model's slug attribute is different this function, :py:class:`misago.views.OutdatedSlug` is raised. This exception is then captured by Misago's exception handler which makes Misago return permanent (http 301) redirect to client with valid link.
 
 
-Example of view that first fetches object form database and then makes sure user or spider that reaches page has been let known of up-to-date link:
+Example of view that first fetches object form database and then makes sure user or spider that reaches page has been let known of up-to-date link::
+
 
 
-::
     from misago.views.shortcuts import check_object_slug, get_object_or_404
     from misago.views.shortcuts import check_object_slug, get_object_or_404
     from myapp.models import Cake
     from myapp.models import Cake
 
 

+ 1 - 2
docs/thread_store.rst

@@ -15,9 +15,8 @@ get
 
 
 .. function:: get(key[, default=None])
 .. function:: get(key[, default=None])
 
 
-Get value for key from thread store or default value if key is undefined.
+Get value for key from thread store or default value if key is undefined::
 
 
-::
     >>> from misago.core import threadstore
     >>> from misago.core import threadstore
 	>>> get('peach')
 	>>> get('peach')
 	None
 	None