Commit 4812cdd7 by Eric Florenzano

Use update

parent 59ece1fe
...@@ -18,9 +18,7 @@ class View(object): ...@@ -18,9 +18,7 @@ class View(object):
def __init__(self, template=None, context={}, **kwargs): def __init__(self, template=None, context={}, **kwargs):
self.template = template self.template = template
self.context = context self.context = context
self.context.update(kwargs)
for key in kwargs:
self.context[key] = kwargs[key]
def load_template(self): def load_template(self):
if self.template: 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