Change the tree trigger to order children by name
This commit is contained in:
parent
4ce656c836
commit
869408e712
|
@ -0,0 +1,17 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
from tree.operations import CreateTreeTrigger, DeleteTreeTrigger, RebuildPaths
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('storage', '0004_auto_20170528_1945'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
DeleteTreeTrigger('storage.Item'),
|
||||||
|
CreateTreeTrigger('storage.Item', order_by=('name',)),
|
||||||
|
RebuildPaths('storage.Item')
|
||||||
|
]
|
Loading…
Reference in New Issue