nanterre: change default ordering for Duplicate (#21157)

This commit is contained in:
Benjamin Dauvergne 2018-01-12 16:01:20 +01:00 committed by Thomas NOEL
parent 5cd03c7925
commit 34b7dc67d5
3 changed files with 21 additions and 1 deletions

View File

@ -107,6 +107,7 @@ setup(
'pytz',
'python-dateutil',
'django-admin-rangefilter',
'requests',
],
zip_safe=False,
cmdclass={

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-12 15:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('zoo_nanterre', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='duplicate',
options={'ordering': ('-score', 'id'), 'verbose_name': 'duplicate', 'verbose_name_plural': 'duplicates'},
),
]

View File

@ -75,5 +75,5 @@ class Duplicate(models.Model):
class Meta:
verbose_name = _('duplicate')
verbose_name_plural = _('duplicates')
ordering = ('created',)
ordering = ('-score', 'id')
unique_together = (('first', 'second'),)