1👍
If you use @classmethod
and cls
you can only get empty values. It is because you have basic class schema from which you can create objects (aka instances of that class).
To get value of current objects it has to be from self
, so standard method. Then you can get a value of this particular object instance.
I didn’t even find mention of a @classmethod
in the Firestore Python. Most likely you don’t need that decorator for now.
Source:stackexchange.com