Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Brian Rosner authored August 29, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/options.py
2  django/contrib/admin/options.py
@@ -509,7 +509,7 @@ def add_view(self, request, form_url='', extra_context=None):
509 509
             for k in initial:
510 510
                 try:
511 511
                     f = opts.get_field(k)
512  
-                except FieldDoesNotExist:
  512
+                except models.FieldDoesNotExist:
513 513
                     continue
514 514
                 if isinstance(f, models.ManyToManyField):
515 515
                     initial[k] = initial[k].split(",")

0 notes on commit 5c31c68

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