There’s some gold in that ticket discussion:
Another alternative could be to introduce a
post_operationsignal where thesenderwould be the operation class,operationtheOperationinstance and we could include thefrom_stateandto_stateas well.
The content types app could register a signal receiver for
CreateModelusingpost_operation.connect(sender=CreateModel, receiver)and return[CreateContentType(...)]. The executor would then execute the collected operations. Then auth app could register apost_operation.connect(sender=CreateContentType, receiver)and return[CreatePermission]which the executor would execute as well.
That would allow us get rid of the nasty plan injection logic and expose a somewhat reusable interface for third party apps all that without enforcing
INSTALLED_APPSordering for now.
Could be a GSoC idea, maybe? To create the interface, and then convert contenttypes and auth to use it.