  
      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
         days, only displaying the month if it changes::
  
              <h1>Archive for {{ year }}</h1>
  
              {% for date in days %}
                  {% ifchanged %}<h3>{{ date|date:"F" }}</h3>{% endifchanged %}
 
</s> remove     Check if a value has changed from the last iteration of a loop.
 </s> add     Checks if a value has changed from the last iteration of a loop. </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     of the block are output:

    ::
 </s> add     of the block are output:: </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     # Note: This returns the exact same node on each {% cycle name %} call; that
    # is, the node object returned from {% cycle a b c as name %} and the one
    # returned from {% cycle name %} are the exact same object.  This shouldn't
    # cause problems (heh), but if it does, now you know.
 </s> add     # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
       displays the content if it has changed. For example, this displays a
       list of days, only displaying the month if it changes::
  
      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 days, only displaying the month if it changes::
       displays the content if it has changed. For example, this displays a
       list of days, only displaying the month if it changes::
  
              <h1>Archive for {{ year }}</h1>
  
              {% for date in days %}
                  {% ifchanged %}<h3>{{ date|date:"F" }}</h3>{% endifchanged %}
keep keep keep keep replace 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