perf: 修改 m2m json field

This commit is contained in:
ibuler
2023-05-18 21:34:19 +08:00
parent ebaa8d2637
commit a261d69cd2
6 changed files with 60 additions and 9 deletions

View File

@@ -315,6 +315,7 @@ class RelatedManager:
else:
queryset = to_model.objects.all()
q = cls.get_filter_q(value, to_model)
print("Q: ", q)
return queryset.filter(q)
@staticmethod