title: Django converting generator to list
body: <p>I am using <a href="http://code.google.com/p/django-voting/" rel="nofollow noreferrer">django-voting</a> package and have been trying to get it's manager get_top() to work. I've stumbled upon one problem - it produces generator (from which actually I need to extract data to select items from database on) which seems to be a problem for me.</p>
  
  <p>After spending two days of googling and reading forums, the closest think I came to was this:
  <a href="https://stackoverflow.com/questions/776060/what-is-generator-object-in-django">What is &quot;generator object&quot; in django?</a></p>
  
  <p>It says that any generator can be converted to list by:</p>
  
  <pre><code>mylist=list(myGenerator)
  </code></pre>
  
  <p>Althought if I do convert generator to list I get the following error:</p>
  
  <pre><code>'NoneType' object has no attribute '_meta'
  </code></pre>
  
  <p>Here is my view and model code:</p>
  
  <pre><code>def main(request):
      temporary = TopIssue.objects.get_top(Model=Issue, limit=10)
      temp_list = list(temporary)
      return render_to_response('main/index.html', temp_list)
  
  from voting.managers import VoteManager
  class TopIssue:
      objects = VoteManager()
  </code></pre>
  
  <p>Any ideas?</p>