About Indented JSON Fields in Administration
By default, JSON fields in administration are not indented and are challenging to analyze. To indent them, create a custom model form as such:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Then use the form in the model admins and inlines, so:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Tips and Tricks Programming User Experience Django 4.2 Django 3.2 Django 2.2 Python 3
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.