drf get absolute url code example
Example: get absolute url
from django.urls import reverse
def get_absolute_url(self):
return reverse('your:url', kwargs={'pk': self.pk})
from django.urls import reverse
def get_absolute_url(self):
return reverse('your:url', kwargs={'pk': self.pk})