소스 검색

Fixed import in docs/ref/models/conditional-expressions.txt example.

Mohammad Esmaeilbeygi 7 년 전
부모
커밋
9d1d0e2b70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/ref/models/conditional-expressions.txt

+ 1 - 1
docs/ref/models/conditional-expressions.txt

@@ -207,7 +207,7 @@ functions <aggregation-functions>` to achieve this::
     ...     account_type=Client.PLATINUM,
     ...     registered_on=date.today())
     >>> # Get counts for each value of account_type
-    >>> from django.db.models import IntegerField, Sum
+    >>> from django.db.models import Count
     >>> Client.objects.aggregate(
     ...     regular=Count('pk', filter=Q(account_type=Client.REGULAR)),
     ...     gold=Count('pk', filter=Q(account_type=Client.GOLD)),