title: Django QuerySet with Models
body: <p>I'm new to Django and trying to understand how to use querysets with models.</p>
  
  <pre><code>Model
  class Channel(models.Model):
      name = models.CharField(max_length=200)
      accountid = models.CharField(max_length=34)
  
      def get_channel_list(self):
          return self.get_queryset().name()
  </code></pre>
  
  <p>What I want to do is return the entire name column as an array if account id matches. I'd like to use a function in the models.py but I haven't found an online sample that caters to what I'm looking for.</p>
  
  <p>The above isn't returning any data even without a filter.</p>
  
  <p>Any point in the right direction would be amazing.</p>