summaryrefslogtreecommitdiffstats
path: root/devel/migrations/0004_masterkey_dates.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-19 03:01:22 +0100
committerDan McGee <dan@archlinux.org>2013-01-19 03:01:22 +0100
commitcba22a378b48f1a4f185a56a21f39483595cf8a6 (patch)
treee7de61f96c23aa972291ca14459d2109cda77f98 /devel/migrations/0004_masterkey_dates.py
parent0b930fd92140858f4ad21e593feb057996af9b95 (diff)
downloadarchweb-cba22a378b48f1a4f185a56a21f39483595cf8a6.tar.gz
archweb-cba22a378b48f1a4f185a56a21f39483595cf8a6.tar.xz
Don't pull and sort mirror URLs unless we have to
On the download page, the explicit sorted() call was forcing evaluation of the Django queryset, even if we never actually needed the results because the template fragment was cached. Wrap it all in a callable function which looks the same to the template, but saves us the cost of evaluation every single page view. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/migrations/0004_masterkey_dates.py')
0 files changed, 0 insertions, 0 deletions