issue #19932: the same fix for model_mixin