#3371: Filter to get dict's value by key name
---------------------------------------------+------------------------------
Reporter: Alex Dedul | Owner: nobody
Status: reopened | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords: template filter
dict key
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Changes (by nullie):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Why is it out of scope? Implementation can be really simple:
{{
def get(d, key):
return d.get(key, '')
register.filter(get)
}}
And I here questions about this again and again.
--
Ticket URL: <http://code.djangoproject.com/ticket/3371#comment:6>
Django <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
-~----------~----~----~----~------~----~------~--~---