get a random record from model 'MyModel' using django's orm,MyModel.objects.order_by('?').first()