Open hedleyroos opened 9 years ago
Ack, just ran into that on UCM. Probable fix:
models.py, line 368:
- q = q.filter(q1|q2)
+ q = q.filter(q1|q2).distinct()
Be careful to use only() with distinct() as Oracle will fall over if not.
q = q.filter(q1|q2).only("id").distinct()
PR submitted to resolve this: https://github.com/praekelt/jmbo-foundry/pull/70
I changed https://github.com/praekelt/jmbo-foundry/pull/70 a bit so we don't incur any performance penalties. Fix deployed to develop.
If an object has the same category appear in "primary category" as well as "categories" then it appears twice in a listing.