Browse files

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

…f django/contrib/admin/options.py.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 21adbd6 commit 5c31c68560b6de7765293fe5f740ab77437e1fdf @brosner brosner committed Aug 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/options.py
View
2 django/contrib/admin/options.py
@@ -509,7 +509,7 @@ def add_view(self, request, form_url='', extra_context=None):
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(",")

0 comments on commit 5c31c68

Please sign in to comment.