Ticket #4641: 4641.diff
File 4641.diff, 790 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/widgets.py
99 99 output.append('<a href="%s%s" class="related-lookup" id="lookup_id_%s" onclick="return showRelatedObjectLookupPopup(this);"> ' % \ 100 100 (related_url, url, name)) 101 101 output.append('<img src="%simg/admin/selector-search.gif" width="16" height="16" alt="Lookup"></a>' % settings.ADMIN_MEDIA_PREFIX) 102 if value: 103 output.append(' <strong>%s</strong>' % self.rel.to.objects.get(pk=value)) 102 104 return u''.join(output) 103 105 #if self.change: # TODO 104 106 #output.append(' <strong>TODO</strong>')