  
  #@register.tag
  def ifchanged(parser, token):
      """
      Check if a value has changed from the last iteration of a loop.
  
      The 'ifchanged' block tag is used within a loop. It has two possible uses.
  
      1. Checks its own rendered contents against its previous state and only
         displays the content if it has changed. For example, this displays a list of
 
</s> remove        displays the content if it has changed. For example, this displays a list of
       days, only displaying the month if it changes::
 </s> add        displays the content if it has changed. For example, this displays a
       list of days, only displaying the month if it changes:: </s> remove     2. If given a variable, check whether that variable has changed. For example, the
       following shows the date every time it changes, but only shows the hour if both
       the hour and the date have changed::
 </s> add     2. If given a variable, check whether that variable has changed.
       For example, the following shows the date every time it changes, but
       only shows the hour if both the hour and the date have changed:: </s> remove     Output the contents of the block if the two arguments equal each other.
 </s> add     Outputs the contents of the block if the two arguments equal each other. </s> remove     Output one of the bits used to compose template tags.
 </s> add     Outputs one of the bits used to compose template tags. </s> remove     """Output the contents of the block if the two arguments are not equal. See ifequal."""
 </s> add     """
    Outputs the contents of the block if the two arguments are not equal.
    See ifequal.
    """
    Checks if a value has changed from the last iteration of a loop.
  
  #@register.tag
  def ifchanged(parser, token):
      """
    Checks if a value has changed from the last iteration of a loop.
  
      The 'ifchanged' block tag is used within a loop. It has two possible uses.
  
      1. Checks its own rendered contents against its previous state and only
         displays the content if it has changed. For example, this displays a list of
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py