Make sure custom user logic works with Django 1.4

Monkey Patch for Django 1.4 to allow new custom user model logic.