With that query I get:
InvalidRequestError: Could not find a FROM clause to join from.  Tried 
joining to <class 'supplements.models.Product'>, but got: Can't find any 
foreign key relationships between 'category' and 'product'.

Product and category model has many to many relationship

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to