call the function yaml.dump with 4 arguments: self.objects, self.stream, Dumper=DjangoSafeDumper and unpacked dictionary self.options.
yaml . dump ( self . objects , self . stream , Dumper = DjangoSafeDumper , ** self . options )