Fixed some edge-case error handling from [8699]. Thanks, gkelly.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-08-29 18:12:31 +00:00
parent ef7f61a35e
commit 71076ae299
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ class ModelAdmin(BaseModelAdmin):
try: try:
f = opts.get_field(k) f = opts.get_field(k)
except FieldDoesNotExist: except FieldDoesNotExist:
pass continue
if isinstance(f, models.ManyToManyField): if isinstance(f, models.ManyToManyField):
initial[k] = initial[k].split(",") initial[k] = initial[k].split(",")
form = ModelForm(initial=initial) form = ModelForm(initial=initial)