django/tests/admin_utils
utkarsh.arya@zomato.com e09564d902 Fix JSONField readonly admin display to use valid JSON
Previously, readonly JSONField values in the admin were shown as Python dicts, not valid JSON. Now, display_for_field uses json.dumps with the field's encoder to ensure correct JSON output.
Fixes # (if applicable)
2025-11-15 23:01:27 +00:00
..
__init__.py
admin.py Fixed #12952 -- Adjusted admin log change messages to use form labels instead of field names. 2019-06-14 18:20:29 +02:00
models.py Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests. 2017-06-09 13:28:50 -04:00
test_logentry.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
tests.py Fix JSONField readonly admin display to use valid JSON 2025-11-15 23:01:27 +00:00
urls.py Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00