Ticket #7469: relation_link_na.diff
File relation_link_na.diff, 912 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/widgets.py
194 194 output.append(u'<a href="%sadd/" class="add-another" id="add_id_%s" onclick="return showAddAnotherPopup(this);"> ' % \ 195 195 (related_url, name)) 196 196 output.append(u'<img src="%simg/admin/icon_addlink.gif" width="10" height="10" alt="Add Another"/></a>' % settings.ADMIN_MEDIA_PREFIX) 197 if value != None: 198 output.append(u'<a href="%s%s" title="Go to selected model"><img src="%simg/admin/selector-addall.gif" width="16" height="16" alt="Go to selected model"/></a>' % (related_url, value, settings.ADMIN_MEDIA_PREFIX)) 197 199 return mark_safe(u''.join(output)) 198 200 199 201 def build_attrs(self, extra_attrs=None, **kwargs):