Re: [sqlalchemy] joinedload().load_only() emits 2.0 warning

2021-07-15 Thread Federico Caselli
Hi. As the warning mebtions, the issue is that you are using the string name with load only instead of the column from the class. In this load only from the file: .load_only('firstname'))) On Thursday, 15 July 2021 at 14:28:29 UTC+2 Mike Bayer wrote: > i can look later, if i forget after a day

Re: [sqlalchemy] joinedload().load_only() emits 2.0 warning

2021-07-15 Thread Mike Bayer
i can look later, if i forget after a day or so please post this to github discussions and/or issues where i will notice it better On Thu, Jul 15, 2021, at 7:44 AM, Lele Gaifax wrote: > Hi, > > while upgrading one of my apps to SA 1.4, paying attention toward 2.0 > compatibility, I found one sin

[sqlalchemy] joinedload().load_only() emits 2.0 warning

2021-07-15 Thread Lele Gaifax
Hi, while upgrading one of my apps to SA 1.4, paying attention toward 2.0 compatibility, I found one single issue that I was not able to figure out whether I'm doing something wrong or missed something in the excellent migration guide. All tests pass, but executing them with SQLALCHEMY_WARN_20 I