diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
index e8df6b9..b242a29 100644
a
|
b
|
|
66 | 66 | {% for dependency in field.dependencies %} |
67 | 67 | document.getElementById("{{ dependency.auto_id }}").onkeyup = function() { |
68 | 68 | var e = document.getElementById("{{ field.field.auto_id }}"); |
69 | | 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 }}); } |
| 69 | 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|default_if_none:"50" }}); } |
70 | 70 | } |
71 | 71 | {% endfor %} |
72 | 72 | {% endfor %} |