Object is saved as NoneType if readonly, Unicode when not readonly
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I created a model with a TextField. Some privileged users will be able to enter data into the field, others will see it as readonly, when logged into the django admin. When not readonly, the model will save the empty field as Unicode. When readonly, the model will save the field as NoneType.
The lack of consistency may create problems if cleaning the data and a certain data type is expected.