diff --git a/project/geosource/tests/test_api.py b/project/geosource/tests/test_api.py index 80ffb91d..cfbfba2d 100644 --- a/project/geosource/tests/test_api.py +++ b/project/geosource/tests/test_api.py @@ -365,12 +365,12 @@ def test_ordering_filtering_search(self): self.assertEqual(data[0]["name"], obj.name) # Test ordering by polymorphic_ctype__model asc - response = self.client.get(list_url, {"ordering": "polymorphic_ctype__model"}) + response = self.client.get(list_url, {"ordering": "source_type"}) data = response.json()["results"] self.assertEqual(data[0]["name"], obj2.name) # Test ordering by polymorphic_ctype__model desc - response = self.client.get(list_url, {"ordering": "-polymorphic_ctype__model"}) + response = self.client.get(list_url, {"ordering": "-source_type"}) data = response.json()["results"] self.assertEqual(data[-1]["name"], obj2.name)