diff --git a/django/contrib/admin/templates/admin/prepopulated_fields_js.html b/django/contrib/admin/templates/admin/prepopulated_fields_js.html
index 9e78c34..a78d5da 100644
a
|
b
|
|
4 | 4 | {% for dependency in field.dependencies %} |
5 | 5 | document.getElementById("{{ dependency.auto_id }}").onkeyup = function() { |
6 | 6 | var e = document.getElementById("{{ field.field.auto_id }}"); |
7 | | if (!e._changed) { e.value = URLify({% for innerdep in field.dependencies %}document.getElementById("{{ innerdep.auto_id }}").value{% if not forloop.last %} + ' ' + {% endif %}{% endfor %}, {{ field.field.field.max_length }}); } |
| 7 | if (!e._changed) { e.value = URLify({% for innerdep in field.dependencies %}document.getElementById("{{ innerdep.auto_id }}").value{% |
| 8 | if not forloop.last %} + ' ' + {% endif %}{% endfor %}, {{ field.field.field.max_length|default_if_none:"50" }}); } |
8 | 9 | } |
9 | 10 | {% endfor %} |
10 | 11 | {% endfor %} |
11 | | </script> |
12 | | No newline at end of file |
| 12 | </script> |