I was getting the same error, but was not automating things like you. I only tried to register 3 models by the old method. It was my models instances which didn't have models.Model inheritance. I'm going to try you automation anyway