

def __init__(self, queryset, chunksize=100, **kwargs):
    if (not isinstance(queryset, QuerySet)):
        raise AttributeError(('queryset needs to be an instance of a Django QuerySet. (got a %s)' % type(queryset)))
    if (len(queryset) == 0):
        sys.stdout.write(('Queryset for %s is empty.\n' % queryset.model))
    super(ForeignKey, self).__init__(queryset[:chunksize])

dataset/ETHPy150Open sbaechler/django-scaffolding/scaffolding/tubes.py ForeignKey.__init__/original