kmpekala / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

filter when there is no entry in other table #97

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi,

I have 2 tables

aa : id,name,date
bb : id,aa_id,obs

i want to filter aa list when there is no line in bb with  aa_id

exemple i have aa :   234,truc,2010-10-10
but no line with aa_id=234 in bb

i need to now what to write here (XXXX) :

aa_list = aa_list.filter(XXXX)

thx.

Original issue reported on code.google.com by jpilett...@gmail.com on 9 Dec 2010 at 6:39