Changes between Initial Version and Version 1 of Ticket #35434, comment 7
- Timestamp:
- May 5, 2024, 11:56:54 AM (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35434, comment 7
initial v1 9 9 > In my real world example the model instance is instantiated from a JSON object in a generic way, and foreign keys are set using the attnames where it is not possible to know the actual data type. 10 10 11 If you are turning a ''raw'' JSON object to a model instance I think that you should be expected to call `clean_fields` at the very least. 11 If you are turning a ''raw'' JSON object to a model instance I think that you should be expected to call `clean_fields` at the very least. That's what serialization layers are usually for; turn data into their proper model equivalent.