django/django — pull request #2827 by SmileyChris (2014-06-18 05:00:30+00:00)
Title: Ensure internal migrations are done first so that __first__ always works

Fixes #22861