

def _generate(self):
    if self.instance.rel.limit_choices_to:
        queryset = self.instance.rel.to.objects.filter(**quersyet.instance.rel.limit_choices_to).exclude(id__in=self.instance.model.objects.all().values(self.instance.name))
    else:
        quersyet = self.instance.rel.to.objects.all()
        queryset = quersyet.exclude(id__in=self.instance.model.objects.all().values(self.instance.name))
    return self.sd.db_object_from_queryset(queryset)

dataset/ETHPy150Open kaleidos/django-sampledatahelper/sampledatahelper/handlers.py OneToOneHandler._generate/VarMisuse@36/42 `self`->`quersyet`