summaryrefslogtreecommitdiff
path: root/django/db/models/base.py
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2006-05-28 21:27:07 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2006-05-28 21:27:07 +0000
commitaeb807989f711c61b75c42241eea4c942becf19a (patch)
tree3a77e523f60b17e323b73677b7988da8f3f0ab11 /django/db/models/base.py
parent681763a29c9d82858a214a6898e807be0c835c47 (diff)
multi-auth: Merged to [2997]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@2998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/base.py')
-rw-r--r--django/db/models/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 08a81c9ab9..bc722de505 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -269,8 +269,8 @@ class Model(object):
q._params.extend([param, param, getattr(self, self._meta.pk.attname)])
try:
return q[0]
- except IndexError, e:
- raise self.DoesNotExist, e.args
+ except IndexError:
+ raise self.DoesNotExist, "%s matching query does not exist." % self.__class__._meta.object_name
def _get_next_or_previous_in_order(self, is_next):
cachename = "__%s_order_cache" % is_next