AttributeError: 'list' object has no attribute 'resolve'