Type object has no attribute objects. Attributeerror: 'int' object has no attribute 'append'.