Fix issue with compat module for custom user models