a2_rbac: order organizational units by name only (#20248)
This commit is contained in:
parent
36043475a0
commit
02d91ed551
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('a2_rbac', '0015_organizationalunit_validate_emails'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='organizationalunit',
|
||||
options={'ordering': ('name',), 'verbose_name': 'organizational unit', 'verbose_name_plural': 'organizational units'},
|
||||
),
|
||||
]
|
|
@ -49,7 +49,7 @@ class OrganizationalUnit(OrganizationalUnitAbstractBase):
|
|||
class Meta:
|
||||
verbose_name = _('organizational unit')
|
||||
verbose_name_plural = _('organizational units')
|
||||
ordering = ('-default', 'name',)
|
||||
ordering = ('name',)
|
||||
unique_together = (
|
||||
('name',),
|
||||
('slug',),
|
||||
|
|
Loading…
Reference in New Issue