Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make django DRF's pretty print function work on the browsable view
Roland Geiderce98af21849a
diff --git a/wger/core/templates/rest_framework/api.html b/wger/core/templates/rest_framework/api.htmlindex 6a82c4954..3ecdc9491 100644--- a/wger/core/templates/rest_framework/api.html+++ b/wger/core/templates/rest_framework/api.html@@ -4,8 +4,14 @@{% load wger_extras %}{% block header %}+<link rel="stylesheet" type="text/css" href="{% static 'rest_framework/css/prettify.css' %}"/><script src="{% static 'rest_framework/js/prettify-min.js' %}"></script>-<script src="{% static 'rest_framework/js/default.js' %}"></script>++<script>+ $(document).ready(function() {+ prettyPrint();+ });+</script>{% endblock %}{% block title %}REST API - {{ name }}{% endblock %}