Add compat for Django 1.5/1.6 and user custom