#NEWLINE# def get_serializer( name , **options ) : #NEWLINE# #INDENT# "Retrieve a serializer register as *name*. If the serializer is not\navailable a ``ValueError`` exception will raise.\nA common usage pattern::\n\n    qs = MyModel.objects.query().sort_by('id')\n    s = odm.get_serializer('json')\n    s.dump(qs)\n" #NEWLINE# if ( name in _serializers ) : #NEWLINE# #INDENT# serializer = _serializers [ serializer ] #NEWLINE# return serializer ( ** options ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Unknown serializer {0}.' . format ( name ) )