title: get_absolute_url id and slug in Django
body: <p><em>Hello, I want my URL be like this:</em></p>
  <p><strong>site.com/blog/books/details/[id]/[slug]</strong></p>
  <p><em>for example: <strong>site.com/blog/books/details/3/blind_owl</strong></em></p>
  <p>When I click on <em>Book's Name</em> Load Me Nothing. Even Doesn't Show An Error. I Want To Show Me <strong>Description</strong></p>
  <p>Thank you in Advance</p>
  <p><strong>Model:</strong></p>
  <pre class="lang-py prettyprint-override"><code>class Book(TimeStampMixin):
      id = models.AutoField(primary_key=True)
      author = models.ForeignKey(to=Author, on_delete=models.PROTECT)
      book_name = models.TextField()
  
      def __str__(self):
          return '{}'.format(self.book_name)
  
  class Details(TimeStampMixin):
      book = models.ForeignKey(to=Book, on_delete=models.PROTECT)
      description = models.TextField()
      slug = models.SlugField(max_length=100, null=True, blank=True)
  
      def get_absolute_url(self):
          return reverse('blog:book_details', args=[self.pk, self.slug])
  
      def __str__(self):
          return '{}'.format(self.book)
  </code></pre>
  <p><strong>The Main URL:</strong></p>
  <pre class="lang-py prettyprint-override"><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('', views.home, name='home'),
      path('blog/', include('blog.urls')),
  ]
  </code></pre>
  <p><strong>URL:</strong></p>
  <pre class="lang-py prettyprint-override"><code>urlpatterns = [
      path('authors/', views.authors, name='authors'),
      path('books/', views.books, name='books'),
      path('books/details/&lt;int:pk&gt;/&lt;slug:slug&gt;/', views.book_details, name='book_details')
  </code></pre>
  <p><strong>View:</strong></p>
  <pre class="lang-py prettyprint-override"><code>def books(request):
      book = Book.objects.all()
      context = {'books': book}
      return render(request, 'Blog/books.html', context=context)
  
  def book_details(request, pk, slug):
      details = Details.objects.filter(pk=pk, slug=slug)
      context = {'details': details}
      return render(request, 'Blog/book_details.html', context=context)
  </code></pre>
  <p><strong>Book Template:</strong></p>
  <pre><code>{% for each in books %}
  &lt;a href=&quot;{{ each.get_absolute_url }}&quot;&gt;
      Book's Name: {{ each.book_name }}
  &lt;/a&gt;
  {% endfor %}
  </code></pre>
  <p><strong>Book Details Template:</strong></p>
  <pre><code>{% for each in details %}
  Description: {{ each.description }}
  {% endfor %}
  </code></pre>