[patch] "basic" model tests assume ORDER BY id
As discussed on django-dev, the tests/modeltests/basic/models.py contains doctests that OR together other query sets, then expect the results to be in a deterministic order, apparently by id. But no ordering is specified in the model, so the tests are passing only by luck (and they fail against the Oracle backend).
We need a patch to add ordering = ("-pub_date",) and to alter the relevant tests to match that ordering.
Summary: |
"basic" model tests assume ORDER BY id → [patch] "basic" model tests assume ORDER BY id
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
Adds ordering = ("pub_date",) to basic models.py