Fix models to support custom user model from Django 1.5