class Customer(models.Model):
    customer_name = models.CharField(max_length=60)
city_name = models.CharField(max_length=30)
state = models.ForeignKey('State')

def __unicode__(self):
    return self.customer_name


class Meta:
    ordering = ['customer_name', 'city_name', 'state']
Django: How to write query to sort using multiple columns, display via template