mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #14880 - raw_id_fields in admin does not work when limit_choices_to dictionary has value=False
Thanks to smallming for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -102,6 +102,9 @@ def url_params_from_lookup_dict(lookups):
|
||||
for k, v in lookups.items():
|
||||
if isinstance(v, list):
|
||||
v = u','.join([str(x) for x in v])
|
||||
elif isinstance(v, bool):
|
||||
# See django.db.fields.BooleanField.get_prep_lookup
|
||||
v = ('0', '1')[v]
|
||||
else:
|
||||
v = unicode(v)
|
||||
items.append((k, v))
|
||||
|
||||
Reference in New Issue
Block a user