Usos del CFDI ordenar por nombre

This commit is contained in:
Mauricio Baeza 2018-01-14 00:39:28 -06:00
parent 95f0a0b490
commit 51ae946b79
2 changed files with 3 additions and 3 deletions

View File

@ -1710,7 +1710,7 @@ class SATUsoCfdi(BaseModel):
moral = BooleanField(default=False)
class Meta:
order_by = ('-default', 'name',)
order_by = ('name',)
indexes = (
(('key', 'name'), True),
)

View File

@ -733,14 +733,14 @@ function format_bool_moral(obj){
var grid_admin_usos_cfdi_cols = [
{id: 'id', header: 'ID', hidden: true},
{id: 'key', header: 'Clave'},
{id: 'key', header: 'Clave', adjust: 'header'},
{id: 'name', header: 'Nombre', width: 500},
{id: 'fisica', header: 'Físicas', adjust: 'header',
template: format_bool_fisica},
{id: 'moral', header: 'Morales', adjust: 'header',
template: format_bool_moral},
{id: 'activo', header: 'Activa', template: '{common.checkbox()}',
editor: 'checkbox'},
editor: 'checkbox', adjust: 'header'},
]