Skip to content

Commit

Permalink
Forms
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 29, 2015
1 parent c3f0597 commit f3f807d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panoramix/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ class BaseViz(object):
css_files = []

def __init__(self, datasource, form_data):
self.datasource = datasource
form = self.form_class(form_data)
form.validate()
raise
self.form_data = form_data
if isinstance(form_data, MultiDict):
self.form_data = form_data.to_dict(flat=False)
self.datasource = datasource
self.token = self.form_data.get(
'token', 'token_' + uuid.uuid4().hex[:8])

Expand Down

0 comments on commit f3f807d

Please sign in to comment.