Skip to content
Browse files

Fixed an issue in ForeignKeyRawIdWidget where the values in limit_cho…

…ices_to were always treated as lists even when they weren't

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bd2b005 commit 8559fc6b35a5e7ffe3f52fe5ca19590a56ac18ab @ubernostrum ubernostrum committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/
4 django/contrib/admin/
@@ -131,10 +131,10 @@ def base_url_parameters(self):
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])
v = str(v)
- items.append((k, ','.join(v)))
+ items.append((k, v))
return params

0 comments on commit 8559fc6

Please sign in to comment.
Something went wrong with that request. Please try again.