Yes, this is a guard against circular imports. Done in https://github.com/chrismedrela/django/commit/1871f69572c8f08d6ca5020a04af06299dc32eb9.