title: Django cannot render model attributes by slug to the template
body: <p>I have set a model including some attributes and can get the model by a slug in views.py. However, I can't render its attributes into the template. Did I miss something?</p>
  <p>Model.py</p>
  <pre><code>class article(models.Model):
  title = models.CharField(max_length=200)
  content = RichTextUploadingField()
  slug = models.SlugField(unique=True, max_length=200)
  
  def __str__(self):
      return self.title
  </code></pre>
  <p>Views.py</p>
  <pre><code>def post_details(request, slug):
   details = get_object_or_404(article, slug=slug)
   context = {
      details: 'details'
   }
   return render(request, 'post_details.html', context)
  </code></pre>
  <p>Urls.py</p>
  <pre><code>from django.contrib import admin
  from django.urls import path
  from . import views
  
  urlpatterns = [
    path('', views.home, name='home'),
    path('&lt;slug:slug&gt;/', views.post_details, name='post_details')
  ]
  </code></pre>
  <p>I have set a URL to get the article model's data by slug in index.html</p>
  <pre><code>&lt;h4 class=&quot;title&quot;&gt;&lt;a href=&quot;{% url 'post_details' article.slug %}&quot;&gt;{{ article.title }}&lt;/a&gt;&lt;/h4&gt;
  </code></pre>
  <p>post_details.html</p>
  <pre><code>&lt;h2&gt;{{ details.slug }}&lt;/h2&gt;
  </code></pre>
  <p>I can access this template by slug but can't get any attributes by using the 'details' tag</p>