#4534: ifchanged could use an else tag
-----------------------------------------------------+----------------------
          Reporter:  Bill Fenner <[EMAIL PROTECTED]>  |         Owner:  nobody
            Status:  reopened                        |     Milestone:        
         Component:  Template system                 |       Version:  0.96  
        Resolution:                                  |      Keywords:        
             Stage:  Accepted                        |     Has_patch:  1     
        Needs_docs:  1                               |   Needs_tests:  0     
Needs_better_patch:  0                               |  
-----------------------------------------------------+----------------------
Comment (by Dave Smith <[EMAIL PROTECTED]>):

 I've used the equivalent of this patch for three different use cases, and
 found it very useful.

 - showing " to mark duplicates in a column of numbers (that's what the
 customer wanted)
 - changing CSS to use a different style for duplicates
 - dropping an image in place of a duplicate.

 With an 'else', ifchanged is really easy to use for stuff like this, esp.
 since changes are limited to the template.

 The patch installs cleanly in r7997 and the tests pass.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4534#comment:9>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to