Permalink
Browse files

Merge branch 'master' of github.com:dszczyt/django-nested-forms

  • Loading branch information...
2 parents 88ff0bc + 846bc2d commit ec03a47c99cf8d0fe4ffafd840b60a570f4a3943 Damien SZCZYT committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nested_forms/forms.py
View
@@ -475,7 +475,7 @@ def resolve_callable(var, args=None, kwargs=None, default=None):
for x in range(int(_data.get("%s-%s" % (prefix, INITIAL_FORM_COUNT), 0)))
]
).distinct()
- if allowed_objects:
+ if isinstance(allowed_objects, QuerySet):
queryset = allowed_objects.filter(
pk__in = queryset.values_list('pk', flat=True)
).distinct()

0 comments on commit ec03a47

Please sign in to comment.