소스 검색

HUE-2633 [desktop] Fix migrations for oracle

Erick Tryzelaar 10 년 전
부모
커밋
3116af60f8
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)