fix to work woth django 1.7 custom user models