On Jul 5, 10:17 am, "euan.godd...@googlemail.com" <euan.godd...@gmail.com> wrote: > The link to your snippet doesn't work for me.
Sorry, it was accidentally double posted and the original was deleted. Here it is now: http://djangosnippets.org/snippets/2093/. > It sounds like a neat idea. However, I've never come across a > situation where I've needed to do that in 2.5 years of developing > Django templates, and, whilst I agree that we don't want to get into a > holy war about whether stuff should be done in templates or views, I > reckon the reason I've avoided this sort of thing is because I must > have done that sort of work in the view :) To be honest, I never *had to* do it (in the strict sense) either but apparently others did ([1-4]). As for the "just put it in the view" argument, remember that until last month this was the response for people wanting "if" to be a bit smarter :) George [1] http://bit.ly/9ordv7 [2] http://bit.ly/9B0b89 [3] http://bit.ly/aldiqA [4] http://bit.ly/bXMmap -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.