On Thu, Jul 23, 2009 at 11:55 AM, Adam Seering<aseer...@mit.edu> wrote: > I have a PostgreSQL stored procedure that does some fairly complex > logic to query/filter a particular table (though it ultimately does > return rows straight from that table). I'm trying to call this stored > procedure from within Django, and execute additional filters/etc on the > procedure: > > MyModel.do_my_stored_procedure('proc', args).filter(mymodelfk__foo=bar) > > (or the like.) Anyone have any pointers on how to best do this? Is > there, by any chance, native support for this in Django 1.1 that I just > haven't found yet?
I'd like to know this, too. It'd be an excellent way to execute complex SQL without having to drop out of the ORM entirely: hide the logic in a function, giving it a simple interface that the ORM can easily digest without knowing the details. -- Glenn Maynard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---