Context.setdefault(key, default=None)
New in Django 1.9.
If key
is in the context, returns its value. Otherwise inserts key
with a value of default
and returns default
.
Context.setdefault(key, default=None)
If key
is in the context, returns its value. Otherwise inserts key
with a value of default
and returns default
.
Please login to continue.