diff options
Diffstat (limited to 'tests/custom_pk')
| -rw-r--r-- | tests/custom_pk/models.py | 2 | ||||
| -rw-r--r-- | tests/custom_pk/tests.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py index f4ecc874ee..eb9f86b064 100644 --- a/tests/custom_pk/models.py +++ b/tests/custom_pk/models.py @@ -9,9 +9,9 @@ this behavior by explicitly adding ``primary_key=True`` to a field. from __future__ import unicode_literals from django.db import models +from django.utils.encoding import python_2_unicode_compatible from .fields import MyAutoField -from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible diff --git a/tests/custom_pk/tests.py b/tests/custom_pk/tests.py index e3133774e6..9ba506d953 100644 --- a/tests/custom_pk/tests.py +++ b/tests/custom_pk/tests.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.db import transaction, IntegrityError +from django.db import IntegrityError, transaction from django.test import TestCase, skipIfDBFeature from django.utils import six -from .models import Employee, Business, Bar, Foo +from .models import Bar, Business, Employee, Foo class BasicCustomPKTests(TestCase): |
