Obtener URL absoluta

from django.urls import reverse

def get_absolute_url(self):
        return reverse('your:url', kwargs={'pk': self.pk})
Virgin Programmer