Opened 7 years ago

Last modified 7 years ago

#28695 closed Cleanup/optimization

Make ModelBase.__new__ pass **kwargs to type.__new__ — at Version 1

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 (last modified by Jarosław Wygoda)

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/).

Change History (1)

comment:1 by Jarosław Wygoda, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top