Opened 7 years ago
Last modified 6 years ago
#29434 closed Cleanup/optimization
model_to_dict should work with prefix — at Initial Version
Reported by: | Maxim Danilov | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | Normal | Keywords: | models, prefix |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
model_to_dict Returns a dict containing the data in instance
suitable for passing as a Form's
initial
keyword argument.
i am agree with that.
but sometimes it can helped to generate it with prefix in keys.
Note:
See TracTickets
for help on using tickets.