def METHOD_NAME(self, instance):
    if instance.id is not None:
        url = viewutil.admin_url(instance)
        return mark_safe('<a href="{u}">Edit</a>'.format(u=url))
    else:
        return mark_safe('Not Saved Yet')