Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On update_item when using "IN" Conditional Write Operator, AttributeValueList gets only the last item of the list. #102

Closed
lita opened this issue Mar 4, 2016 · 0 comments

Comments

@lita
Copy link

lita commented Mar 4, 2016

I am trying to do an update_item with the following parameters

model.update_item("status", "delivered", status__in=['queued', 'sending', 'sent'])
The model's current status is 'queued'. So this should work. However, I get a UpdateError. When I look at the logs, this is what the AWS json is generating.

{'status': {'ComparisonOperator': 'IN', 'AttributeValueList': [{'S': u'sent'}]}}

Shouldn't the AttirbuteValueList have all three items in it? It seems to be only putting the last item in the list.

@lita lita changed the title When using "IN" Conditional Write Operator, it doesn't handle multiple items in a list On update_item when using "IN" Conditional Write Operator, AttributeValueList gets only the last item of the list. Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant