Fixed user model gathering for recent django versions (1.4+)