2015: Setting blank=True in a JSONField results in an exception
- Fixed
- Review Board
| germ*****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
| March 22, 2011 |
What version are you running?
Git master branch
What steps will reproduce the problem?
1. Setup a model with a JSONField() field in it.
2. Send a blank=True to JSONField
3. Get the exeption: TypeError: __init__() got multiple values for keyword argument 'blank'
Please provide any additional information below.
In the JSONField __init__(), it blank could be pop'd out of kwargs (if any) as in:
blank=kwargs.pop('blank', True)
...that'd fix it.