django中数据库操作时distinct的用法

解决方法:

 注意:

不能在distinct里面加字段名称
只能用于valuse和values_list进行去重

猜你喜欢

转载自www.cnblogs.com/Zhao159461/p/10913946.html