Fix for testing in Django < 1.6, defaulting to no permission when providing weird objects or classes