2 ms·
django is good just one thing fix .select_related('child__attribute') / .values('child__attribute') currently it removes from result set rows where 'attribut
by ds3w2 3y ago
django is good
just one thing
fix .select_related('child__attribute') / .values('child__attribute')
currently it removes from result set rows where 'attribute' is NULL, unlike what typical LEFT JOINs imply
- tomwojcik 3y agoI never run into this issue but isn't it that Django uses inner join for select related, so it does what it's supposed to do? You can always prefetch related, or even use outer=True. This will return the results you expect.