Skip to content
Browse files

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

…f django/contrib/admin/

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 21adbd6 commit 5c31c68560b6de7765293fe5f740ab77437e1fdf @brosner brosner committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/
2 django/contrib/admin/
@@ -509,7 +509,7 @@ def add_view(self, request, form_url='', extra_context=None):
for k in initial:
f = opts.get_field(k)
- except FieldDoesNotExist:
+ except models.FieldDoesNotExist:
if isinstance(f, models.ManyToManyField):
initial[k] = initial[k].split(",")

0 comments on commit 5c31c68

Please sign in to comment.
Something went wrong with that request. Please try again.