Ilya Priven

Results 164 comments of Ilya Priven

> Well, I should expect a return of only the attributes you want to read. So let's say: > DatabaseModel.get(id,attributes_to_get=["id","name"]) > You will get only the values of id and...

This makes perfect sense, but if you (a) knowingly ignore the fields you don't request, and (b) never call `.save()` on that model, then how do the default values "get...

@rajesh-entropy Let's assume this model: ```python class DatabaseModel(Model): id = UnicodeAttribute(hash_key=True) name = UnicodeAttribute() foo = UnicodeAttribute(default='bar') ``` and let's assume that you do: ```python model = DatabaseModel.get(id, attributes_to_get=["id","name"]) return...

You wrote: ```python table.put_item(user_id, transaction_id, attributes={...}) ``` which appears to omit the actual value passed as the `attributes` parameter (I assume it's not a set containing a single ellipsis item...)....

With #1003, of PynamoDB 6.x we should no longer default to `us-east-1`. As for the actual issue, I've created #1077. Duplicate of #1077.

Previously: https://github.com/pynamodb/PynamoDB/issues/434 Yep, we need to document this!

https://github.com/pynamodb/PynamoDB/pull/951 btw, it _is_ documented here, but I admit it took me a while to find: https://pynamodb.readthedocs.io/en/latest/updates.html#update-expressions

The documentation shows how DynamoDB actions map to PynamoDB syntax, not how to use DynamoDB actions to do practical things :) That's how DynamoDB structures it: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-UpdateExpression What you'd want...

It doesn't have T in the middle nor a timezone. Not sure what encoded this value but perhaps it's best if you just map it up UnicodeAttribute?

Still no timezone. Also year is padded with zeroes. What are your serializing this with? Why do you want to serialize it with UTCDateTimeAttribute? You can implement your own attribute...