﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16647	Default filters: pacth to add  QuerySet support for random plus a new shuffle filter	h3	nobody	"I believe the way the random filter works right now is asinine or at least not very useful.

When working in templates, 90% of the lists we have to deal with are QuerySet instances, so for this filter to choke when we pass it an object list is not very helpful.

I've seen [https://code.djangoproject.com/ticket/8044 a proposed patch] for this posted three years ago, but it was rejected on the ground that it required a new db hit and thus was problematic for large querysets. Fair enough.

My patch use the queryset.order_by('?') method so it (theoretically) doesn't require a new database hit.

It also introduce a new ""shuffle"" filter, which useful when you want to randomize a list or a queryset instead of just picking one randomly."	New feature	closed	Template system	1.3	Normal	wontfix			Design decision needed	1	1	1	1	0	0
