Commit 45484bb6 authored by Nicolas Joyard's avatar Nicolas Joyard

Fix unreliable order options tests

parent e3f72473
......@@ -7,9 +7,9 @@
</li>
---
<li>
<a href="?&amp;sort=score-desc">Worst score</a>
<a href="?&amp;sort=score-asc">Best score</a>
</li>
---
<li>
<a href="?&amp;sort=score-asc">Best score</a>
<a href="?&amp;sort=score-desc">Worst score</a>
</li>
\ No newline at end of file
<li>
<a href="?&amp;sort=name-desc">Name Z-A</a>
</li>
---
<li class="disabled">
<a href="?&amp;sort=name-asc">Name A-Z</a>
</li>
---
<li>
<a href="?&amp;sort=name-desc">Name Z-A</a>
</li>
\ No newline at end of file
......@@ -37,7 +37,7 @@ class RepresentativeList(CSVDownloadMixin, GridListMixin, PaginationMixin,
'fields': ['-representative_score__score']
},
'score-desc': {
'order': 2,
'order': 3,
'label': 'Worst score',
'fields': ['representative_score__score']
}
......
......@@ -30,7 +30,7 @@ class ThemeList(PaginationMixin, SortMixin, PositionFormMixin,
'fields': ['name']
},
'name-desc': {
'order': 0,
'order': 1,
'label': 'Name Z-A',
'fields': ['-name']
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment