  from django.test import TestCase, Approximate, skipUnlessDBFeature
  from django.db import DEFAULT_DB_ALIAS
  from django.db.models import Count, Max, Avg, Sum, StdDev, Variance, F
  
  from regressiontests.aggregation_regress.models import *
  
  
  class AggregationTests(TestCase):
      def assertObjectAttrs(self, obj, **kwargs):
          for attr, value in kwargs.iteritems():
 
</s> remove from django.db import DEFAULT_DB_ALIAS
 </s> add  </s> remove from django.conf import settings
 </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
from models import Author, Book, Publisher, Clues, Entries, HardbackBook
  from django.test import TestCase, Approximate, skipUnlessDBFeature
  from django.db import DEFAULT_DB_ALIAS
  from django.db.models import Count, Max, Avg, Sum, StdDev, Variance, F
  
from models import Author, Book, Publisher, Clues, Entries, HardbackBook
  
  
  class AggregationTests(TestCase):
      def assertObjectAttrs(self, obj, **kwargs):
          for attr, value in kwargs.iteritems():
keep keep keep keep replace keep 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