User model foreign key compatible with Django 1.5 and above