Skip to content

Instantly share code, notes, and snippets.

@jaredlockhart
Created April 23, 2018 18:33
Show Gist options
  • Save jaredlockhart/9c9a7345ec5628e683509683c74e0096 to your computer and use it in GitHub Desktop.
Save jaredlockhart/9c9a7345ec5628e683509683c74e0096 to your computer and use it in GitHub Desktop.
In [4]: data
Out[4]:
{'description': 'There pretty page piece not tend however generation. Beat no tree never run garden body.\nSkill old main. Care itself become set through. But building specific explain option.',
'experiment': <Experiment: Optimized holistic project>,
'is_control': True,
'name': 'Secured grid-enabled artificial intelligence',
'ratio': 3,
'slug': 'secured-grid-enabled-artificial-intelligence',
'value': 10}
In [5]: data['description']
Out[5]: 'There pretty page piece not tend however generation. Beat no tree never run garden body.\nSkill old main. Care itself become set through. But building specific explain option.'
In [6]: form = ControlVariantForm(data)
In [7]: form.is_valid()
Out[7]: False
In [8]: form.errors
Out[8]:
{'description': ['This field is required.'],
'name': ['This field is required.'],
'value': ['This field is required.']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment