thequery().with_polymorphic( list of classes ) ? On Wednesday 25 February 2009 15:43:54 Vladimir Iliev wrote: > hi, > > how can i filter dynamic relation's query to instances of a given > class, including the subclasses ? > > i tried something like > > part.documents.filter(Part.documents.of_type(CADDocument)) > > but i'm getting > > ArgumentError: filter() argument must be of type > sqlalchemy.sql.ClauseElement or string > > thanks in advance > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---