def get_serialize_format ( self , mimetype ) : format = self . formats . get ( mimetype , None ) if format is None : format = formats . get ( mimetype , None ) return format
python django contenttype serializer
Get the serialization format for the given mimetype
def get_serialize_format(self, mimetype):
		""" Get the serialization format for the given mimetype """
		format = self.formats.get(mimetype, None)
		if format is None:
			format = formats.get(mimetype, None)
		return format