nanterre: change default ordering for Duplicate (#21157)
This commit is contained in:
parent
5cd03c7925
commit
34b7dc67d5
1
setup.py
1
setup.py
|
@ -107,6 +107,7 @@ setup(
|
|||
'pytz',
|
||||
'python-dateutil',
|
||||
'django-admin-rangefilter',
|
||||
'requests',
|
||||
],
|
||||
zip_safe=False,
|
||||
cmdclass={
|
||||
|
|
|
@ -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'},
|
||||
),
|
||||
]
|
|
@ -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'),)
|
||||
|
|
Loading…
Reference in New Issue