Change the tree trigger to order children by name

d42/ebin
mpts 2017-10-02 23:02:33 +02:00 committed by Piotr Dobrowolski
parent 4ce656c836
commit 869408e712
1 changed files with 17 additions and 0 deletions

View File

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