About JSON Out of a Dictionary with Lazy Strings
Use DjangoJSONEncoder
to support lazy translations while converting a dictionary to JSON:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2 Python 3