Permalink
Browse files

Forced a couple of querysets to execute.

  • Loading branch information...
1 parent 86deb87 commit 265cdf9826c393cc201db714b5ea07764aeca50c @jacobian jacobian committed Jun 20, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 benchmarks/query_dates/benchmark.py
  2. +1 −1 benchmarks/query_none/benchmark.py
@@ -2,6 +2,6 @@
from utils import run_benchmark
def benchmark():
- Book.objects.dates("created_date", "year", "ASC")
+ list(Book.objects.dates("created_date", "year", "ASC"))
run_benchmark(benchmark, trials=50)
@@ -2,6 +2,6 @@
from utils import run_benchmark
def benchmark():
- Book.objects.none()
+ list(Book.objects.none())
run_benchmark(benchmark, trials=50)

0 comments on commit 265cdf9

Please sign in to comment.