Author: brosner
Date: 2008-08-29 14:50:22 -0500 (Fri, 29 Aug 2008)
New Revision: 8719

Modified:
   django/trunk/django/contrib/admin/options.py
Log:
Properly reference FieldDoesNotExist as it does not exist in global of 
django/contrib/admin/options.py.

Modified: django/trunk/django/contrib/admin/options.py
===================================================================
--- django/trunk/django/contrib/admin/options.py        2008-08-29 19:29:16 UTC 
(rev 8718)
+++ django/trunk/django/contrib/admin/options.py        2008-08-29 19:50:22 UTC 
(rev 8719)
@@ -509,7 +509,7 @@
             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(",")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to