Bugfix on get_user_model method. Use it for Django >= 1.5 and use User for older versions. Code simplified.