Changes between Initial Version and Version 1 of Ticket #29434


Ignore:
Timestamp:
May 22, 2018, 1:00:15 PM (7 years ago)
Author:
Tim Graham
Comment:

Can you describe your use case in a bit more detail? Is the idea that the function would accept a prefix argument and simply add that prefix to all keys in the resulting dictionary? I'm unsure why you couldn't do that outside of Django. model_to_dict() is a private API and I don't see much argument for adding options that Django itself doesn't use.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29434

    • Property Type UncategorizedCleanup/optimization
  • Ticket #29434 – Description

    initial v1  
    1 model_to_dict Returns a dict containing the data in ``instance`` suitable for passing as a Form's ``initial`` keyword argument.
     1model_to_dict Returns a dict containing the data in `instance` suitable for passing as a Form's `initial` keyword argument.
    22i am agree with that.
    33
Back to Top