django/django — pull request #3171 by bwreilly (2014-09-05 22:35:25+00:00)
Title: Prevent possible recursion limit issue in migration planning

This switches out the recursive depth first search for stack based approach.

Additionally adds test that replicates original potential problem.