Chunks: order based on item too so items are clustered together.
This commit is contained in:
parent
dfbfa01bc5
commit
23edc29bb8
17
django_etesync/migrations/0023_auto_20200310_1556.py
Normal file
17
django_etesync/migrations/0023_auto_20200310_1556.py
Normal 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')},
|
||||||
|
),
|
||||||
|
]
|
@ -71,7 +71,7 @@ class CollectionItemChunk(models.Model):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ('item', 'order')
|
unique_together = ('item', 'order')
|
||||||
ordering = ['order']
|
ordering = ('item', 'order')
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.uid
|
return self.uid
|
||||||
|
Loading…
Reference in New Issue
Block a user