The keyword arguments to selectBy() are converted to the where clause with:
for key, value in self._by.items(): args.append(getattr(self._cls, key) == value)
So you should get an AttributeError if you make a typo, unless the incorrect attribute name actually exists on the class. Perhaps that is what you observed?
The keyword arguments to selectBy() are converted to the where clause with:
for key, value in self._by.items():
args. append( getattr( self._cls, key) == value)
So you should get an AttributeError if you make a typo, unless the incorrect attribute name actually exists on the class. Perhaps that is what you observed?