stefanfoulis/django-filer — pull request #320 by gavinwahl (2013-06-20 22:21:19+00:00)
Title: Don't call get_user_model in models modules

You are not allowed to call get_user_model in a models module[1]. Doing so seems to work, but can cause circular imports in some situations, depending on your import structure and ordering of INSTALLED_APPS. This is because get_model loads the entire app cache, importing every model.

[1]: https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#django.contrib.auth.get_user_model