I would like to have a custom initializer for my PyMODM class. Doing it the straightforward way
class MyModel(MongoModel):
fields = ...
def __init__(self, other_args...):
super().__init__(other_args)
do_something_else()
produces first a warning:
DeprecationWarning: __class__ not set defining 'MyModel' as <class '__main__.MyModel'>. Was __classcell__ propagated to type.__new__?
and then an error:
TypeError: __init__() missing required positional arguments
What am I missing?