Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5c31c68560b6de7765293fe5f740ab77437e1fdf 1 parent 21adbd6
@brosner brosner authored
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(",")
Please sign in to comment.
Something went wrong with that request. Please try again.