× 'NoneType' object has no attribute 'approved'