Use item.get('releaseday') or None
.
You'll solve two problems:
When the key does not exist, this will default to None
, which is valid input for your model as you have null=True
.
If the key exists but its blank ''
, then it will result in None
which is a valid value for your model.