Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed string formatting in exception message

  • Loading branch information...
commit 34b699fb0f6f1e0533d8d7e24745c9ddd05ab1e7 1 parent cb6be75
@justquick justquick authored Nathan Borror committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  basic/inlines/parser.py
View
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.