From 5c31c68560b6de7765293fe5f740ab77437e1fdf Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Fri, 29 Aug 2008 19:50:22 +0000 Subject: [PATCH] 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 --- django/contrib/admin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index aae143b86e..4643e3590b 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -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(",")