#18385: firstof doesn't deal well with empty "safe" values. ---------------------------------+-------------------------------------- Reporter: nedbatchelder | Owner: mawimawi Type: Bug | Status: closed Component: Template system | Version: 1.4 Severity: Normal | Resolution: invalid Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+-------------------------------------- Changes (by mawimawi):
* status: new => closed * resolution: => invalid Comment: according to the documentation of the [https://docs.djangoproject.com/en/dev/ref/templates/builtins/#firstof firstof] tag: Outputs the first variable passed that is not False. Does NOT auto- escape variable values. So the `safe` filter is unnecessary, because the results have to be safe anyway. -- Ticket URL: <https://code.djangoproject.com/ticket/18385#comment:3> Django <https://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.