Skip to content

Commit

Permalink
Merge pull request #59 from bashu/patch-1
Browse files Browse the repository at this point in the history
Syntax specification for codeblocks in README.rst
  • Loading branch information
bpereto committed Oct 14, 2018
2 parents f58ec2d + d0f5667 commit 97cd73f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.rst
Expand Up @@ -134,7 +134,9 @@ Changelog:

* Added ability to override form class in ``add_permission`` view.

* Added easy way to assign permissions via a permission instance, e.g.::
* Added easy way to assign permissions via a permission instance, e.g.:

.. code-block:: python
from django.contrib.auth.models import User
from mysite.articles.permissions import ArticlePermission
Expand Down Expand Up @@ -162,13 +164,17 @@ Changelog:
* The templatetags have also been refactored to be easier to customize
which required a change in the template tag signature:

Old::
Old:

.. code-block:: html+django

{% permission_form flatpage %}
{% permission_form flatpage "flatpage_permission.top_secret" %}
{% permission_form OBJ PERMISSION_LABEL.CHECK_NAME %}

New::
New:

.. code-block:: html+django

{% permission_form for flatpage %}
{% permission_form for flatpage using "flatpage_permission.top_secret" %}
Expand Down

0 comments on commit 97cd73f

Please sign in to comment.