diff options
author | Claude Paroz <claude@2xlibre.net> | 2016-11-19 21:54:19 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2017-01-18 13:44:34 +0100 |
commit | f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca (patch) | |
tree | 65ca40d4527b377845cdd382456383bf97caafa6 /tests/custom_pk | |
parent | d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff) | |
download | django-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz |
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/custom_pk')
-rw-r--r-- | tests/custom_pk/fields.py | 2 | ||||
-rw-r--r-- | tests/custom_pk/models.py | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/custom_pk/fields.py b/tests/custom_pk/fields.py index 3779fc6c43..eb63f66679 100644 --- a/tests/custom_pk/fields.py +++ b/tests/custom_pk/fields.py @@ -3,10 +3,8 @@ import string from django.db import models from django.utils import six -from django.utils.encoding import python_2_unicode_compatible -@python_2_unicode_compatible class MyWrapper(object): def __init__(self, value): self.value = value diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py index e0a318468c..0b272c1135 100644 --- a/tests/custom_pk/models.py +++ b/tests/custom_pk/models.py @@ -6,12 +6,10 @@ this behavior by explicitly adding ``primary_key=True`` to a field. """ from django.db import models -from django.utils.encoding import python_2_unicode_compatible from .fields import MyAutoField -@python_2_unicode_compatible class Employee(models.Model): employee_code = models.IntegerField(primary_key=True, db_column='code') first_name = models.CharField(max_length=20) @@ -24,7 +22,6 @@ class Employee(models.Model): return "%s %s" % (self.first_name, self.last_name) -@python_2_unicode_compatible class Business(models.Model): name = models.CharField(max_length=20, primary_key=True) employees = models.ManyToManyField(Employee) @@ -36,7 +33,6 @@ class Business(models.Model): return self.name -@python_2_unicode_compatible class Bar(models.Model): id = MyAutoField(primary_key=True, db_index=True) |