Commit 8559fc6b authored by James Bennett's avatar James Bennett
Browse files

Fixed an issue in ForeignKeyRawIdWidget where the values in limit_choices_to...

Fixed an issue in ForeignKeyRawIdWidget where the values in limit_choices_to were always treated as lists even when they weren't


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent bd2b0059
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,10 +131,10 @@ class ForeignKeyRawIdWidget(forms.TextInput):
            items = []
            for k, v in self.rel.limit_choices_to.items():
                if isinstance(v, list):
                    v = [str(x) for x in v]
                    v = ','.join([str(x) for x in v])
                else:
                    v = str(v)
                items.append((k, ','.join(v)))
                items.append((k, v))
            params.update(dict(items))
        return params