Skip to content

Commit

Permalink
Small doc changes for fallback images
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed May 29, 2012
1 parent 979a552 commit b6a4e5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/usage.rst
Expand Up @@ -155,17 +155,16 @@ generate the thumbnail by specifying all of the required options.
For a full list of options, read the :doc:`ref/processors` reference
documentation.


Fallback images
----------------------------------------
---------------

If you need to support fallback or default images at template level you can
use::
{% thumbnail object.image|default:'img/default_image.png' 50x50 %}

It only works for images within the media storage location, usually where your
{{ MEDIA_ROOT }} points to.
Where the image string is relative to your default storage (usually the
``MEDIA_ROOT`` setting).


Models
Expand Down

0 comments on commit b6a4e5b

Please sign in to comment.