diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 26aacf7..51d7d8d 100644
a
|
b
|
class ForeignKeyRawIdWidget(forms.TextInput):
|
100 | 100 | output.append('<a href="%s%s" class="related-lookup" id="lookup_id_%s" onclick="return showRelatedObjectLookupPopup(this);"> ' % \ |
101 | 101 | (related_url, url, name)) |
102 | 102 | output.append('<img src="%simg/admin/selector-search.gif" width="16" height="16" alt="Lookup"></a>' % settings.ADMIN_MEDIA_PREFIX) |
| 103 | if value: |
| 104 | output.append(' <strong>%s</strong>' % self.rel.to.objects.get(pk=value)) |
103 | 105 | return mark_safe(u''.join(output)) |
104 | | #if self.change: # TODO |
105 | | #output.append(' <strong>TODO</strong>') |
106 | 106 | |
107 | 107 | class ManyToManyRawIdWidget(ForeignKeyRawIdWidget): |
108 | 108 | """ |