This should be written as `return reverse('blog.views.post_details', pk=self.pk)`