Type object has no attribute objects. Attribute fix.