Mention blog post
@@ -26,7 +26,11 @@ from readthedocs.search.utils import _indexing_helper
def _pretty_config(instance):
- """Function to display pretty version of our data"""
+ """
+ Function to display pretty version of our data
+
+ Thanks to PyDanny: https://www.pydanny.com/pretty-formatting-json-django-admin.html
+ """
# Convert the data to sorted, indented JSON
response = json.dumps(instance.config, sort_keys=True, indent=2)
