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:
parent
ef7f61a35e
commit
71076ae299
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue