Opened 7 years ago
Last modified 7 years ago
#28695 closed Cleanup/optimization
Make ModelBase.__new__ pass **kwargs to type.__new__ — at Initial Version
Reported by: | Jarosław Wygoda | Owned by: | Jarosław Wygoda |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.11 |
Severity: | Normal | Keywords: | ModelBase __init_subclass__ |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
ModelBase must pass kwargs to type.__new__
in order to enable __init_subclass__
in python 3.6 (see https://www.python.org/dev/peps/pep-0487/).
Note:
See TracTickets
for help on using tickets.