Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #168 -- admin object history was assuming primary key was named…

… 'id'. Thanks,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 768c17eda0310b99daa75e05e7e1e00bb82fbc15 1 parent 4ab1e19
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/admin/
2  django/views/admin/
@@ -1077,7 +1077,7 @@ def history(request, app_label, module_name, object_id):
order_by=("action_time",), select_related=True)
# If no history was found, see whether this object even exists.
- obj = mod.get_object(id__exact=object_id)
+ obj = mod.get_object(**{'%s__exact' % object_id})
except ObjectDoesNotExist:
raise Http404
t = template_loader.get_template('admin_object_history')
Please sign in to comment.
Something went wrong with that request. Please try again.