我有一个动态创建的复杂Q对象。我如何否定Q对象,以便可以在 filter() 中使用它而不是 exclude() ? 最佳答案. 使用 ~ 运算符: complex_condition = ~Q(....)
確定! 回上一頁