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
Other fields required when trying to Add/Delete from a set #34
Comments
Also, what version of PynamoDB are you using? |
Thanks for taking a look. I'm using
I sent you some code off-list. Thanks so much. |
Hi there. I think I've fixed the issue. Can you install from the devel branch on GitHub and retry?
|
Thanks. In my code I changed Really appreciate it. |
Glad to hear it. I'll cut a new release soon including this and a few other fixes. |
If I call update_item(attrib, value, action='ADD'), I get an error that an un-related field can't be None. As I read the docs, I only need to set the field I'm updating.
...
user.update_item('attribute_to_update', user_id, action='add')
File "/Users/danielgould/.virtualenvs/tmp_test/lib/python2.7/site-packages/pynamodb/models.py", line 320, in update_item
args, kwargs = self._get_save_args()
File "/Users/danielgould/.virtualenvs/tmp_test/lib/python2.7/site-packages/pynamodb/models.py", line 833, in _get_save_args
serialized = self._serialize(null_check=null_check)
File "/Users/danielgould/.virtualenvs/tmp_test/lib/python2.7/site-packages/pynamodb/models.py", line 994, in _serialize
raise ValueError("Attribute '{0}' cannot be None".format(attr.attr_name))
ValueError: Attribute 'other_attrib' cannot be None
The text was updated successfully, but these errors were encountered: