mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
21adbd6738
commit
5c31c68560
|
@ -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(",")
|
||||
|
|
Loading…
Reference in New Issue