Skip to content

Commit

Permalink
Adds syntax highlighting on code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gvangool committed Apr 11, 2015
1 parent c923ee4 commit 1ccfa7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ objects.
Installation
------------

::
.. code:: sh
pip install django-states
Expand Down Expand Up @@ -72,7 +72,9 @@ Note: If you're creating a ``DataMigration`` in
`South <http://south.aeracode.org/>`__, remember to use
``obj.save(no_state_validation=True)``
Usage example::
Usage example:
.. code:: python
p = Purchase()
Expand Down Expand Up @@ -125,7 +127,9 @@ Groups
Sometimes you want to group several states together, since for a certain
view (or other content) it doesn't really matter which of the states it
is. We support 2 different state groups, inclusive (only these) or
exclusive (everything but these)::
exclusive (everything but these):
.. code:: python
class is_paid(StateGroup):
states = ['paid', 'shipped']
Expand Down

0 comments on commit 1ccfa7c

Please sign in to comment.