queryset how fetch column code example
Example 1: django only certain columns from database
Entry.objects.values_list('id', 'headline')
Example 2: django command to fetch all columns of a table
table = Country.objects.values_list('name_of_the_country', 'country_code')