Commits

Anonymous committed 89183d0

Fixed a couple of bugs in the docs.

  • Participants
  • Parent commits 156c338

Comments (0)

Files changed (1)

 Then subsequent calls to ``c.get_poll()`` won't hit the database.
 
 Note that ``select_related`` follows foreign keys as far as possible. If you have the
-following models...
+following models::
 
     class Poll(meta.Model):
         ...
             ...
         )
 
-...then a call to ``singlevotes.get_object(id__exact=4, select_related=True)`` will
-cache the related choice *and* the related poll.
+then a call to ``singlevotes.get_object(id__exact=4, select_related=True)`` will
+cache the related choice *and* the related poll::
 
     >>> sv = singlevotes.get_object(id__exact=4, select_related=True)
     >>> c = sv.get_choice()        # Doesn't hit the database.
 Creating new objects
 ====================
 
+...