Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed an issue in ForeignKeyRawIdWidget where the values in l…

…imit_choices_to were always treated as lists even when they weren't. Was [9533] in trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b3f278258abca57c865dc1b6296a073f83a73a54 1 parent 1ca99e9
@ubernostrum ubernostrum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/widgets.py
View
4 django/contrib/admin/widgets.py
@@ -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])
else:
v = str(v)
- items.append((k, ','.join(v)))
+ items.append((k, v))
params.update(dict(items))
return params
Please sign in to comment.
Something went wrong with that request. Please try again.