Fixed #2972: prepopulate_from now works with multiple slugs on the same field. Thanks, Archatas.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-07 02:04:06 +00:00
parent 0fd9f6ec6b
commit 212cb21baa
1 changed files with 1 additions and 1 deletions

View File

@ -177,8 +177,8 @@ def output_all(form_fields):
output_all = register.simple_tag(output_all)
def auto_populated_field_script(auto_pop_fields, change = False):
t = []
for field in auto_pop_fields:
t = []
if change:
t.append('document.getElementById("id_%s")._changed = true;' % field.name)
else: