title: fetching data using query from a particular table and showing it in admin side of django
body: <p>I am working on a <code>Django</code> project and I want to fetch data from particular table and show it in the admin side.</p>
  
  <p>I am having a <code>Company</code> model which I have registered in admin using <code>admin.site.register(Company, Company_Admin)</code>. Now I want to just get all the companies after querying them from the table and just show the result in the admin site.</p>
  
  <pre><code>class Company(models.Model):
      name = models.CharField(default=None,max_length=200)
      description = models.TextField(default=None)
      url = models.CharField(max_length=200)
      published = models.BooleanField()
      createdOn = models.DateTimeField(default=datetime.utcnow)
      updatedOn = models.DateTimeField(default=datetime.utcnow)
      keywords = models.ManyToManyField(Keyword)
  
      def __unicode__(self):
         return self.text
  
  class CompanyAdmin(admin.ModelAdmin): 
      list_display = ['name', 'url', 'description', 'published', 'createdOn', 'updatedOn']
      list_filter = ['name']
      search_fields = ['name']
      filter_horizontal = ('keywords', )
  
  admin.site.register(Company, CompanyAdmin)
  </code></pre>
  
  <p>Now I want to create an option in admin panel that will show me all the companies that are published, that is, do not even show the non-published companies.</p>