From f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 19 Nov 2016 21:54:19 +0100 Subject: Refs #23919 -- Removed python_2_unicode_compatible decorator usage --- tests/custom_pk/fields.py | 2 -- tests/custom_pk/models.py | 4 ---- 2 files changed, 6 deletions(-) (limited to 'tests/custom_pk') 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) -- cgit v1.3