def get_parent(self, obj):
    path = reverse('projects-detail', kwargs={'project_slug': obj.parent.slug})
    return self._absolute_url(path)
def get_parent(self, obj):
    path = reverse('projects-detail', kwargs={'project_slug': obj.parent.slug})
    return self._absolute_url(path)