title: django object has no attribute status_code
body: <p>I am learning to develop and trying to develop a screen in django 1.1 and I am getting this error below. I already took a look at some stacks I already looked at httpresponse, however, I was not successful
  could someone help me and explain what could be wrong?</p>
  <p>I'm getting this error on the console:</p>
  <pre><code>Internal Server Error: /gerencia-margem/list
  Traceback (most recent call last):
  File &quot;/home/murilo/virtualenv/intranet_erp/local/lib/python2.7/site-packages/django/core/handlers/base.py&quot;, line 131, in get_response
  response = middleware_method(request, response)
  File &quot;/home/murilo/virtualenv/intranet_erp/local/lib/python2.7/site-packages/django/middleware/locale.py&quot;, line 38, in process_response
  if (response.status_code == 404 and not language_from_path and
  AttributeError: 'HistoricoComissao' object has no attribute 'status_code'
  [18/Nov/2020 13:30:06] &quot;GET /gerencia-margem/list HTTP/1.1&quot; 500 77145
  </code></pre>
  <p>This is models,</p>
  <pre><code># -*- coding: utf-8 -*-
  from django.db import models
  
  
  class HistoricoComissao(models.Model):
  class Meta:
      verbose_name = u'Historico Comissão'
      verbose_name_plural = u'Historico Comissões'
  
  pednum = models.CharField(max_length=40, blank=True)
  margem = models.DecimalField(decimal_places=4, max_digits=15, null=True, blank=True) 
  data = models.DateTimeField()
  historico = models.TextField((u'Historico HTML'), blank=True)
  
  status = models.PositiveSmallIntegerField(choices=[(1, 'Em Aberto'),
                                                     (3, 'Pendente'),
                                                     (4, 'Finalizado'),])
  
  def __unicode__(self):
          return str(self.pednum)
  </code></pre>
  <p>this is the views</p>
  <pre><code>from django.views import View
  from django.shortcuts import render
  from django.http import HttpResponseRedirect, HttpResponse
  from django.core.urlresolvers import reverse
  from ..models import HistoricoComissao
  
  
  def listview(request):
  template_name = 'comissao/margenslist.html'
  comissoes = HistoricoComissao.objects.all
  context = {
      'comissoes': comissoes
  }
  return render(request,template_name,context)
  </code></pre>
  <p>this is urls.py</p>
  <pre><code>from django.conf.urls import  url
  from . import views
  
  
  urlpatterns = [
      url(r'^list$', views.HistoricoComissao, name='historico_comissao'),
   ]
  </code></pre>