I have a custom User model with this classmethod.:
@classmethod
def by_name(cls, name):
u = User.query().filter('name =', name).get()
return u
And I am getting this error.:
TypeError('Cannot filter a non-Node argument; received %r' % arg)
This is My first time using NDB and the code worked with db and all(). So I know this is a simple fix.
Thanks in advance.
The NDB cheat sheet to the rescue: