Chunks: order based on item too so items are clustered together.

This commit is contained in:
Tom Hacohen
2020-03-10 17:56:24 +02:00
parent dfbfa01bc5
commit 23edc29bb8
2 changed files with 18 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class CollectionItemChunk(models.Model):
class Meta:
unique_together = ('item', 'order')
ordering = ['order']
ordering = ('item', 'order')
def __str__(self):
return self.uid