diff --git a/README.rst b/README.rst index 98cd911..5dfa95a 100644 --- a/README.rst +++ b/README.rst @@ -6,17 +6,17 @@ Django bootstrap form :alt: PyPI version :target: https://pypi.python.org/pypi/django-bootstrap-form -.. image:: https://travis-ci.org/tzangms/django-bootstrap-form.png?branch=master +.. image:: https://travis-ci.org/tzangms/django-bootstrap-form.png?branch=master :target: https://travis-ci.org/tzangms/django-bootstrap-form -.. image:: https://coveralls.io/repos/tzangms/django-bootstrap-form/badge.png?branch=master +.. image:: https://coveralls.io/repos/tzangms/django-bootstrap-form/badge.png?branch=master :target: https://coveralls.io/r/tzangms/django-bootstrap-form?branch=master .. image:: https://d2weczhvl823v0.cloudfront.net/tzangms/django-bootstrap-form/trend.png :alt: Bitdeli badge :target: https://bitdeli.com/free - + Twitter Bootstrap for Django Form. @@ -32,8 +32,13 @@ Use it like this, simple. {{ form|bootstrap }} +or + +.. code-block:: + {{ form.field_name|bootstrap }} + Demo ===== -Checkout this `Demo site `_ to see it in action. +Checkout this `Demo site `_ to see it in action. diff --git a/bootstrapform/templates/bootstrapform/field.html b/bootstrapform/templates/bootstrapform/field.html index bfbdf64..a636701 100644 --- a/bootstrapform/templates/bootstrapform/field.html +++ b/bootstrapform/templates/bootstrapform/field.html @@ -15,7 +15,7 @@ {% if field.help_text %}

- {{ field.help_text|safe }} + {{ field.help_text }}

{% endif %} @@ -40,7 +40,7 @@ {% if field.help_text %}

- {{ field.help_text|safe }} + {{ field.help_text }}

{% endif %} @@ -58,7 +58,7 @@ {% if field.help_text %}

- {{ field.help_text|safe }} + {{ field.help_text }}

{% endif %}