  
  Registering custom filters
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  .. method:: django.template.Library.filter
  
  Once you've written your filter definition, you need to register it with
  your ``Library`` instance, to make it available to Django's template language:
  
  .. code-block:: python
 
</s> remove .. method:: django.template.defaultfilters.stringfilter
 </s> add .. method:: django.template.defaultfilters.stringfilter() </s> remove .. method:: Field.__init__
 </s> add .. method:: Field.__init__() </s> remove     .. method:: connect
 </s> add     .. method:: connect() </s> remove .. method:: django.template.Library.simple_tag
 </s> add .. method:: django.template.Library.simple_tag()
.. method:: django.template.Library.filter()
  
  Registering custom filters
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  
.. method:: django.template.Library.filter()
  
  Once you've written your filter definition, you need to register it with
  your ``Library`` instance, to make it available to Django's template language:
  
  .. code-block:: python
keep keep keep keep replace keep keep keep keep keep
 Always use parentheses when documenting a method with no arguments. 
docs/howto/custom-template-tags.txt