Added compatibility with replaceable User model in Django 1.5