Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
wrap does not seem to be doing anything, really
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Mar 13, 2012
1 parent 1515f53 commit 27bdb9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scaffolding/tubes.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,9 @@ def next(self):
class ForeignKey(Tube):
""" Creates a foreign key assigning the queryset.
"""
def __init__(self, queryset, chunksize=100, wrap=True, **kwargs):
def __init__(self, queryset, chunksize=100, **kwargs):
super(ForeignKey, self).__init__(**kwargs)
self.queryset = queryset.order_by('pk')[:chunksize]
self.wrap = wrap
self.length = len(self.queryset)
self.i = 0

Expand Down

0 comments on commit 27bdb9d

Please sign in to comment.