浏览代码

HUE-2633 [desktop] Fix migrations for oracle

Erick Tryzelaar 10 年之前
父节点
当前提交
3116af6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/models.py

+ 1 - 0
desktop/core/src/desktop/models.py

@@ -392,6 +392,7 @@ class DocumentManager(models.Manager):
       #
       # Note we're counting `content_type__name` to force the join.
       docs = Document.objects \
+          .values('id') \
           .annotate(content_type_count=models.Count('content_type__name')) \
           .filter(content_type_count=0)