Django random object manager

Several times in the past I needed to fetch a list of random objects. And Today I decided to make a Mixin class to add a get_random() method to my managers: # -*- coding: utf-8 -*- from random import sample class RandomObjectManager(object): “”” Manager Mixin to implement get_random() in your models. You can override get_objects …