diff -r f1bbf3149349 django/contrib/admin/util.py
a
|
b
|
|
314 | 314 | from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE |
315 | 315 | |
316 | 316 | if field.flatchoices: |
| 317 | if isinstance(value, (list, tuple)): |
| 318 | ret = [] |
| 319 | for v in value: |
| 320 | ret.append(dict(field.flatchoices).get(v, EMPTY_CHANGELIST_VALUE)) |
| 321 | return '; '.join(ret) |
317 | 322 | return dict(field.flatchoices).get(value, EMPTY_CHANGELIST_VALUE) |
318 | 323 | # NullBooleanField needs special-case null-handling, so it comes |
319 | 324 | # before the general null test. |