admin_filterspecs tests fail on PostgreSQL
======================================================================
FAIL: test_RelatedFilterSpec_ForeignKey (regressiontests.admin_filterspecs.tests.FilterSpecsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lrekucki/django/django-gh/tests/regressiontests/admin_filterspecs/tests.py", line 85, in test_RelatedFilterSpec_ForeignKey
self.assertEqual(choices[1]['selected'], True)
AssertionError: False != True
======================================================================
FAIL: test_RelatedFilterSpec_ManyToMany (regressiontests.admin_filterspecs.tests.FilterSpecsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lrekucki/django/django-gh/tests/regressiontests/admin_filterspecs/tests.py", line 111, in test_RelatedFilterSpec_ManyToMany
self.assertEqual(choices[2]['selected'], True)
AssertionError: False != True
======================================================================
FAIL: test_RelatedFilterSpec_reverse_relationships (regressiontests.admin_filterspecs.tests.FilterSpecsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lrekucki/django/django-gh/tests/regressiontests/admin_filterspecs/tests.py", line 139, in test_RelatedFilterSpec_reverse_relationships
self.assertEqual(choices[1]['selected'], True)
AssertionError: False != True
----------------------------------------------------------------------
This and other failures result from false assumptions about primary keys and model ordering. This patch should make assertions db-independent.