Commit 5c31c685 authored by Brian Rosner's avatar Brian Rosner
Browse files

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
parent 21adbd67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(",")