def get_related_content_url(model, related_field):
    """
    Gets related object/content as url based on foreign key
    :param model: Model
    :param related_field: Foreign key field
    :return: Related object/content url
    :rtype: String
    """
    try:
        related_content_obj = model.objects.get(id=related_field)
        return related_content_obj.get_api_url()
    except:
        return None