Ticket #11607: fkrawidwidget.diff

File fkrawidwidget.diff, 644 bytes (added by Joshua Russo, 15 years ago)

Placed a try catch around the retrieval of the label

  • widgets.py

     
    123123            (related_url, url, name))
    124124        output.append('<img src="%simg/admin/selector-search.gif" width="16" height="16" alt="%s" /></a>' % (settings.ADMIN_MEDIA_PREFIX, _('Lookup')))
    125125        if value:
    126             output.append(self.label_for_value(value))
     126            try:
     127                output.append(self.label_for_value(value))
     128            except:
     129                pass
    127130        return mark_safe(u''.join(output))
    128131
    129132    def base_url_parameters(self):
Back to Top