  import datetime
  from decimal import Decimal
  from operator import attrgetter
  
  from django.core.exceptions import FieldError
 
</s> remove from django.conf import settings
 </s> add  </s> remove from django.db import DEFAULT_DB_ALIAS
 </s> add  </s> remove import pickle

from django.db import connection, models, DEFAULT_DB_ALIAS
from django.conf import settings
 </s> add from django.db import models </s> remove from regressiontests.aggregation_regress.models import *
 </s> add from models import Author, Book, Publisher, Clues, Entries, HardbackBook
import pickle
  import datetime
import pickle
  from decimal import Decimal
  from operator import attrgetter
  
  from django.core.exceptions import FieldError
add keep keep keep keep
 Fixed #14754 -- corrected using an aggregate in an F expressions when that queryset is later used in a subquery.  Thanks to master for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14681 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/aggregation_regress/tests.py