#24493: Add setdefault to BaseContext
---------------------------------+--------------------
     Reporter:  prestontimmons   |      Owner:  nobody
         Type:  New feature      |     Status:  new
    Component:  Template system  |    Version:  master
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 Since context defines other dict-like methods, it'd be nice if it
 supported setdefault, too. My use case is initializing the extends history
 in render_context if it exists, otherwise using the value that is already
 there.

 It's not critical, but it makes things more readable.

--
Ticket URL: <https://code.djangoproject.com/ticket/24493>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.4b76b02725d66aace5ce17642631e2d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to