Obtenha URL absoluto

from django.urls import reverse

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