call the __init__ method with stream_class(content) and name set to name arguments, from the base class of the ContentFile class.
super ( ContentFile , self ) . __init__ ( stream_class ( content ) , name = name )