Skip to content

Commit

Permalink
Merge pull request #36 from benbacardi/master
Browse files Browse the repository at this point in the history
Removed context.flatten because it's not in Django 1.6
  • Loading branch information
benbacardi committed Aug 24, 2017
2 parents f1151c9 + d2fd57a commit 1a33d33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nuit/templatetags/nuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ def render(self, context):
except ValueError:
row_data.append((field_data, {}))
else:
aeval = asteval.Interpreter(symtable=context.flatten())
new_context = {}
for d in context.dicts:
new_context.update(d)
aeval = asteval.Interpreter(symtable=new_context)
try:
row_data.append((field_name, aeval(data, show_errors=False)))
except SyntaxError:
Expand Down

0 comments on commit 1a33d33

Please sign in to comment.