Created
April 23, 2018 18:33
-
-
Save jaredlockhart/9c9a7345ec5628e683509683c74e0096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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