django multi column index

Solutions on MaxInterview for django multi column index by the best coders in the world

showing results for - "django multi column index"
Sana
28 Aug 2017
1from django.db import models
2
3class Customer(models.Model):
4    first_name = models.CharField(max_length=100)
5    last_name = models.CharField(max_length=100)
6
7    class Meta:
8        index_together = [
9            ["first_name", "last_name"]
10        ]
11