Keep duplicates when merging query sets (Django)

前端 未结 0 1651
一向
一向 2020-12-12 08:52
    queryset = Profile.objects.none()
    for num in temp1:
        queryset |= Profile.objects.filter(subjects_key__contains=\'-\'+str(num)+\'-\').exclude(user=self         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题