Browse Source

Code blocks.

Rafał Pitoń 11 years ago
parent
commit
01a94f8750
2 changed files with 2 additions and 1 deletions
  1. 1 1
      docs/shortcuts.rst
  2. 1 0
      docs/thread_store.rst

+ 1 - 1
docs/shortcuts.rst

@@ -16,7 +16,7 @@ This function compares model instance's "slug" attribute against user-friendly s
 
 
 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 - 0
docs/thread_store.rst

@@ -17,6 +17,7 @@ get
 
 
 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