[p2pu-dev] A little SQL/Django ORM riddle to start off the week!
Siddharth Sarda
siddharthsarda01 at gmail.com
Tue Jan 8 12:25:31 UTC 2013
Hey,
One way to do this is using Django's extra queryset modifier.
https://docs.djangoproject.com/en/1.0/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none
I have both the queries and the original Django queryset and will try to
rewrite them using extra.
Thanks
Siddharth
P.S.: I am new here. So a warm hello. Also please let me know if I am
violating any decorum.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20130108/21af9a1a/attachment.html>
More information about the p2pu-dev
mailing list