Skip to content

Commit

Permalink
fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
ernop committed Jun 7, 2012
1 parent ea002fa commit b7ec7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_utils/management/commands/makefixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def handle_models(self, models, **options):

objects = []
for model, slice in models:
if isinstance(slice, basestring):
if isinstance(slice, basestring) and slice:
objects.extend(model._default_manager.filter(pk__exact=slice))
elif not slice or type(slice) is list:
items = model._default_manager.all()
Expand Down

0 comments on commit b7ec7d9

Please sign in to comment.