For me, the cause of this error was sending arguments to the register function in the wrong order.
Check the order of registering a ModelAdmin: it’s the model class first, then the ModelAdmin class.
Example: admin.site.register(Model, ModelAdmin)
I suppose naturally the second one has to be the ModelAdmin since register(MyModel) works as well. That’s one good way to think about it.