Ticket #10197: 10197_regression.diff
File 10197_regression.diff, 693 bytes (added by , 16 years ago) |
---|
-
tests/regressiontests/aggregation_regress/models.py
1 1 # coding: utf-8 2 import pickle 2 3 from django.db import models 3 4 from django.conf import settings 4 5 … … 259 260 >>> Book.objects.annotate(Count('publisher')).values('publisher').count() 260 261 6 261 262 263 # Regression for #10197 - annotated QuerySet cannot be pickled 264 >>> qs = Book.objects.annotate(Count('publisher')) 265 >>> q2 = pickle.loads(pickle.dumps(qs)) 266 >>> list(qs) == list(q2) 267 True 268 262 269 """ 263 270 } 264 271