Fixed #19688 -- Allow model subclassing with a custom metaclass using six.with_metaclass