title: Python error: This method is only available to the class, not on instances
body: <p>I am working on a Django application and have defined the line below in my urls.py</p>
  
  <pre><code>path('organizations/', views.OrganizationListView().as_view(), name='organizations'),
  </code></pre>
  
  <p>When I run my server, I get the error below</p>
  
  <pre><code>lib\site-packages\django\utils\decorators.py", line 11, in __get__
      raise AttributeError("This method is available only on the class, not on instances.")
  AttributeError: This method is available only on the class, not on instances.
  </code></pre>
  
  <p>I understand that this must be because of the difference in calling a method on object vs class but not sure exactly what is causing it and how to resolve.</p>