title: django model objects to a python list
body: <p>I want to generate a list using my django model</p>
  
  <p>say I have these model:</p>
  
  <pre><code>class AlarmServer(models.Model):
      ip = models.IPAddressField()
  </code></pre>
  
  <p>and such a list</p>
  
  <pre><code>server_ips = [i.ipfor i in AlarmServer.objects.all()]
  </code></pre>
  
  <p>Doesn't seem to work, what am I doing wrong?</p>