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

@ -0,0 +1,17 @@
# Generated by Django 3.0.3 on 2020-03-10 15:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_etesync', '0022_auto_20200310_1547'),
]
operations = [
migrations.AlterModelOptions(
name='collectionitemchunk',
options={'ordering': ('item', 'order')},
),
]

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