title: AttributeError at /admin/blog/post 'list' object has no attribute 'lower'
body: <p>I have a simple blog code in Django , I write the error and my codes:</p>
  <p>there is my codes
  models.py</p>
  <pre><code>from django.db import models
  
  
  class Post(models.Model):
      title = models.CharField(max_length=200)
      author = models.ForeignKey(
          'auth.User',
          on_delete=models.CASCADE,
      )
      body = models.TextField()
  
      def __str__(self):
          return self.title
  </code></pre>
  <p>views.py</p>
  <pre><code>from django.views.generic import ListView
  from .models import Post
  
  
  class BlogListView(ListView):
      model = Post
      template_name = 'home.html'
  </code></pre>
  <p>urls.py</p>
  <pre><code>from django.urls import path
  from .views import BlogListView
  
  urlpatterns = [
      path('', BlogListView.as_view(), name= 'home')
  ]
  
  </code></pre>
  <p>and home.html</p>
  <pre><code>{% extends 'base.html' %}
  
  {% block content %}
    {% for post in object_list %}
      &lt;div class=&quot;post-entry&quot;&gt;
        &lt;h2&gt;&lt;a href=&quot;&quot;&gt;{{ post.title }}&lt;/a&gt;&lt;/h2&gt;
        &lt;p&gt;{{ post.body }}&lt;/p&gt;
      &lt;/div&gt;
    {% endfor %}
  {% endblock content %}
  </code></pre>
  <p>There is Error message after running code:</p>
  <pre><code>AttributeError at /admin/blog/post
  'list' object has no attribute 'lower'
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/admin/blog/post
  Django Version: 3.1.5
  Exception Type: AttributeError
  Exception Value:    
  'list' object has no attribute 'lower'
  Exception Location: C:\Users\nilaroz\.virtualenvs\blog-Keg_c4F1\lib\site-packages\django\utils\http.py, line 295, in is_same_domain
  Python Executable:  C:\Users\nilaroz\.virtualenvs\blog-Keg_c4F1\Scripts\python.exe
  Python Version: 3.8.6
  Python Path:    
  ['D:\\MyDjangoProject\\blog',
   'c:\\program files (x86)\\python38-32\\python38.zip',
   'c:\\program files (x86)\\python38-32\\DLLs',
   'c:\\program files (x86)\\python38-32\\lib',
   'c:\\program files (x86)\\python38-32',
   'C:\\Users\\nilaroz\\.virtualenvs\\blog-Keg_c4F1',
   'C:\\Users\\nilaroz\\.virtualenvs\\blog-Keg_c4F1\\lib\\site-packages']
  Server time:    Sun, 31 Jan 2021 19:53:08 +0000
  </code></pre>
  <p>why? I don't make any list!
  what's mean &quot;'list' object has no attribute 'lower'&quot;?
  I think maybe Django makes a list when call for loop!</p>
  <pre><code>{% for post in object_list %}
  </code></pre>
  <p>how I do solve this problem?</p>