Django merge 2 querysets in staggered/alternating fashion without duplicates?

一曲冷凌霜 提交于 2019-12-25 08:46:36

问题


Follow up question to this one:
Django merge 2 querysets in staggered/alternating fashion?

I'm wondering is there an efficient way to avoid duplicates in the result? i.e. the generators will only return items we have not seen before.

来源:https://stackoverflow.com/questions/45834009/django-merge-2-querysets-in-staggered-alternating-fashion-without-duplicates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!