Commit f050c5e4 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Fix a dict iteration

parent 9f878ee4
......@@ -642,7 +642,7 @@ def update_application(app_id, **kw):
app.issue_date = datetime.now()
resource_policies = kw.pop('resource_policies', None)
for k, v in kw:
for k, v in kw.iteritems():
setattr(app, k, v)
app.save()
app.resource_policies = resource_policies
......
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