Changes between Initial Version and Version 1 of Ticket #35434, comment 7


Ignore:
Timestamp:
May 5, 2024, 11:56:54 AM (2 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35434, comment 7

    initial v1  
    99> 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.
    1010
    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.
     11If 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.
Back to Top