def load_binary(sender, instance, **kwargs): if not instance.stage_data: file = instance.stage_file print instance._get_upload_path(file.name) map = Map(file.read(), True) instance.title = map.get_name() instance.stage_data = map.dump_to_json() print instance.stage_data