Permalink
Browse files

randomize tidbits in home page

  • Loading branch information...
1 parent 0037d3f commit d16e69281c4a893ef28cfeca867e4a134875121f @or2008 or2008 committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 auxiliary/views.py
View
@@ -109,7 +109,7 @@ def main(request):
'title': _('Home'),
'hide_crumbs': True,
'is_index': True,
- 'tidbits': Tidbit.active.all()
+ 'tidbits': Tidbit.active.all().order_by('?')
}
template_name = '%s.%s%s' % ('main', settings.LANGUAGE_CODE, '.html')
return render_to_response(template_name, context, context_instance=RequestContext(request))

0 comments on commit d16e692

Please sign in to comment.