Permalink
Browse files

fixed string formatting in exception message

  • Loading branch information...
1 parent cb6be75 commit 34b699fb0f6f1e0533d8d7e24745c9ddd05ab1e7 @justquick justquick committed with Nathan Borror Oct 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 basic/inlines/parser.py
@@ -80,7 +80,7 @@ def render_inline(inline):
context = { 'content_type':"%s.%s" % (app_label, model_name), 'object': obj, 'class': inline_class, 'settings': settings }
except model.DoesNotExist:
if settings.DEBUG:
- raise model.DoesNotExist, "Object matching '%s' does not exist"
+ raise model.DoesNotExist, "%s with pk of '%s' does not exist" % (model_name, inline['id'])
else:
return ''
except:

0 comments on commit 34b699f

Please sign in to comment.