title: Django/python: 'function' object has no attribute 'as_view'
body: <p>I am trying to create a list_view for a model queryset. When running my server, it returns : attribute error - 'function' object has no attribute 'as_view'. I would appreciate helping me in solve this.</p>
  
  <p>Here's my code:</p>
  
  <p>Views.py:</p>
  
  <pre><code>@login_required 
  class live_bids(ListView):
  
      model = Post 
      template_name = 'loggedin_load/live_bids.html'
  
      def get_queryset(self):
          return Post.objects.all().prefetch_related('bids').filter(user=self.request.user)
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code> url(r'^live_bids/$', live_bids.as_view()),
  </code></pre>