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

master
Tom Hacohen 5 years ago
parent dfbfa01bc5
commit 23edc29bb8

@ -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')},
),
]

@ -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

Loading…
Cancel
Save