def set_product_summary_serializer_class(product_summary_serializer_class):
 global _product_summary_serializer_class
 try:
  _product_summary_serializer_class
 except NameError:
  _product_summary_serializer_class = product_summary_serializer_class
 else:
  msg = u'Class `{}` inheriting from `ProductSummarySerializerBase` already registred.'
  raise exceptions.ImproperlyConfigured(msg.format(product_summary_serializer_class.__name__))

def set_product_summary_serializer_class ( product_summary_serializer_class ) : global _product_summary_serializer_class try : _product_summary_serializer_class except NameError : _product_summary_serializer_class = product_summary_serializer_class else : msg = u'Class `{}` inheriting from `ProductSummarySerializerBase` already registred.' raise exceptions . ImproperlyConfigured ( msg . format ( product_summary_serializer_class . __name__ ) )
sets the common productserializer .