Commit 4812cdd7 by Eric Florenzano

Use update

parent 59ece1fe
......@@ -18,9 +18,7 @@ class View(object):
def __init__(self, template=None, context={}, **kwargs):
self.template = template
self.context = context
for key in kwargs:
self.context[key] = kwargs[key]
self.context.update(kwargs)
def load_template(self):
if self.template:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment