Hi, My Django application was ported from a legacy application. This legacy application has some MySQL user defined functions that are frequently used in the WHERE clause of queries. Is it possible to use these stored functions and still return query sets? I want to do something like
MyModel.objects.filter(field_one='blah', field_two='blah').call('my_function(<object_id>, <constant>)').order_by('field_three') Is anything like this possible or do I need to resort to custom SQL? I don't mind if I need to write a custom QuerySet or Manager. I am concerned about using custom SQL as most operation and views seem to prefer lazy query sets instead of lists of models. Thanks for any help. Jon -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.