(obj)
return '<a href="#" class="abuse-link" data-ct="{}" data-pk="{}">{}</a>'\
        .format(ct.pk, obj.pk, _(u"Report abuse"))
Creates abuse report link for given object.
Creates abuse report link for given object.
Creates abuse report link for given object .
def report_link(obj):
    """
    Creates abuse report link for given object.
    """
    if not obj:
        return False
    ct = ContentType.objects.get_for_model(obj)
    return '<a href="#" class="abuse-link" data-ct="{}" data-pk="{}">{}</a>'\
        .format(ct.pk, obj.pk, _(u"Report abuse"))
def report_link ( obj ) : if not obj : return False ct = ContentType . objects . get_for_model ( obj ) return '<a href="#" class="abuse-link" data-ct="{}" data-pk="{}">{}</a>' . format ( ct . pk , obj . pk , _ ( u"Report abuse" ) )