Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15548 closed (fixed)

ModelAdmin regression test fails on Postgresql

Reported by: Béres Botond Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords: postgresql blocker
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

======================================================================
FAIL: test_queryset_override (regressiontests.modeladmin.tests.ModelAdminTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/botondus/Envs/django/django/tests/regressiontests/modeladmin/tests.py", line 159, in test_queryset_override
    '</select>' % (self.band.id, band2.id))
AssertionError: '<select name="main_band" id="id_main_band">\n<option value="" selected="selected">---------</option>\n<option value="9">The Beatles</option>\n<option value="8">The Doors</option>\n</select>' != '<select name="main_band" id="id_main_band">\n<option value="" selected="selected">---------</option>\n<option value="8">The Doors</option>\n<option value="9">The Beatles</option>\n</select>'

Change History (3)

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

In [15743]:

Fixed #15548 -- Added an ordering clause to prevent test failures under Postgres. Thanks to bberes for the report.

comment:2 by Russell Keith-Magee, 14 years ago

In [15746]:

[1.2.X] Fixed #15548 -- Added an ordering clause to prevent test failures under Postgres. Thanks to bberes for the report.

Backport of r15743 from trunk.

comment:3 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top