示例#1
0
 def dicts(cls, xform):
     qs = cls.objects.filter(instance__xform=xform)
     for parsed_instance in queryset_iterator(qs):
         yield parsed_instance.to_dict()
示例#2
0
 def get_list_of_parsed_instances(self):
     for i in queryset_iterator(self.xform.surveys.all()):
         # todo: there is information we want to add in parsed xforms.
         yield i.get_dict()