diff --git a/tests/m2m_through/tests.py b/tests/m2m_through/tests.py index 40753e0fe1..910785ba19 100644 --- a/tests/m2m_through/tests.py +++ b/tests/m2m_through/tests.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from datetime import datetime from operator import attrgetter -from django.test import TestCase +from django.test import TestCase, skipUnlessDBFeature from .models import ( CustomMembership, Employee, Event, Friendship, Group, Ingredient, @@ -198,6 +198,7 @@ class M2mThroughTests(TestCase): attrgetter("name") ) + @skipUnlessDBFeature('supports_microsecond_precision') def test_order_by_relational_field_through_model(self): CustomMembership.objects.create(person=self.jim, group=self.rock) CustomMembership.objects.create(person=self.bob, group=self.rock)