Compatibility fix for custom User model in menu