clean the migration dependencies.
a solution that has just worked in my case was resetting existing migrations, creating and running migrations afresh, then reinstalling djoser. it's likely that a mixup of migration dependencies so anything from; 1) deleting the database, 2) deleting pycache to 3)running replacement and recovery is a great approach to this problem.