#16726: Make is_safe decorator for filters
-------------------------------+---------------------------------
Reporter: kostia.balitsky@… | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: Template system
Version: 1.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+---------------------------------
Why not turn boring process of coding
{{{
@register.filter('amazing')
def amazing(value):
# Not doing anything unsafe ;)
...
return new_value
amazing.is_safe = True
}}}
into something more interesting like
{{{
@register.safe_filter('amazing')
def amazing(value):
# Not doing anything unsafe ;)
...
return new_value
}}}
?
--
Ticket URL: <https://code.djangoproject.com/ticket/16726>
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 [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.