djangosnippets.org: Latest snippets tagged with 'object_id'http://djangosnippets.org/tags/object_id/2008-09-25T22:14:16.362744-05:00Admin Hack: Quick lookup of GenericForeignKey id by ContentType
2008-09-25T22:14:16.362744-05:00adnanhttp://djangosnippets.org/snippets/1085/<p>Generic Relations with django.contrib.contenttypes.generic.GenericForeignKey work well for models but the admin interface just shows the object id as an integer with no easy way to lookup the id of a new object. This jquery javascript adds a "Lookup <ContentType Name>" link next to the object id field in the admin …</p>
Freely redistributable