On Thu, Apr 22, 2010 at 6:10 AM, CCC <qq263020...@gmail.com> wrote: > In django's modelManager > I use oracle do bitwise operator,like: > > select * from MultiRoom m where bitand(m.groupidx,tem ) <> 0 > > and Now I want to change it to use django's orm ? > anyone know how to write? > Thanks >
http://docs.djangoproject.com/en/1.1/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none Use qs.extra() with an additional where clause. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.