I found a way to do this, but it should have included javascript, which was really pretty straight forward. I created a change_form.html file in the templates / admin / billing / directory, which looked like this.
{% extends "admin/change_form.html" %} {% block extrahead %} <script src="{{MEDIA_URL}}js/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#id_template').change(function() { $.ajax({ type: 'POST', url: "{% url get_template_info %}", data: {'template_id': $('#id_template').val()}, success: function(data, _status) { $('#id_throttle').val(data.throttle); $('#id_rate_limit').val(data.rate_limit); $('#id_product').val(data.product); $('#id_tier_group').val(data.tier_group); }, dataType: "json" }); }); }); </script> {% endblock %}
which displays a view that simply takes the passed id, requests it and returns it to the call. It works like a charm.
source share