Kaydet (Commit) 6b01ff80 authored tarafından Mohammad Esmaeilbeygi's avatar Mohammad Esmaeilbeygi Kaydeden (comit) Tim Graham

[2.0.x] Fixed import in docs/ref/models/conditional-expressions.txt example.

Backport of 9d1d0e2b from master
üst a2aea452
......@@ -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)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment