Options.index_together
Sets of field names that, taken together, are indexed:
1 2 3 | index_together = [ [ "pub_date" , "deadline" ], ] |
This list of fields will be indexed together (i.e. the appropriate CREATE INDEX
statement will be issued.)
For convenience, index_together
can be a single list when dealing with a single set of fields:
1 | index_together = [ "pub_date" , "deadline" ] |
Please login to continue.