Kaydet (Commit) 5c31c685 authored tarafından Brian Rosner's avatar Brian Rosner

Properly reference FieldDoesNotExist as it does not exist in global of…

Properly reference FieldDoesNotExist as it does not exist in global of django/contrib/admin/options.py.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 21adbd67
......@@ -509,7 +509,7 @@ class ModelAdmin(BaseModelAdmin):
for k in initial:
try:
f = opts.get_field(k)
except FieldDoesNotExist:
except models.FieldDoesNotExist:
continue
if isinstance(f, models.ManyToManyField):
initial[k] = initial[k].split(",")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment