summaryrefslogtreecommitdiff
path: root/tests/proxy_models
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-11-19 21:54:19 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 13:44:34 +0100
commitf3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca (patch)
tree65ca40d4527b377845cdd382456383bf97caafa6 /tests/proxy_models
parentd7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff)
downloaddjango-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/proxy_models')
-rw-r--r--tests/proxy_models/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/proxy_models/models.py b/tests/proxy_models/models.py
index 6960042d78..93430d615f 100644
--- a/tests/proxy_models/models.py
+++ b/tests/proxy_models/models.py
@@ -5,7 +5,6 @@ than using a new table of their own. This allows them to act as simple proxies,
providing a modified interface to the data from the base class.
"""
from django.db import models
-from django.utils.encoding import python_2_unicode_compatible
# A couple of managers for testing managing overriding in proxy model cases.
@@ -21,7 +20,6 @@ class SubManager(models.Manager):
return super(SubManager, self).get_queryset().exclude(name="wilma")
-@python_2_unicode_compatible
class Person(models.Model):
"""
A simple concrete base class.
@@ -101,7 +99,6 @@ class LowerStatusPerson(MyPersonProxy):
objects = models.Manager()
-@python_2_unicode_compatible
class User(models.Model):
name = models.CharField(max_length=100)
@@ -135,7 +132,6 @@ class Country(models.Model):
name = models.CharField(max_length=50)
-@python_2_unicode_compatible
class State(models.Model):
name = models.CharField(max_length=50)
country = models.ForeignKey(Country, models.CASCADE)
@@ -152,7 +148,6 @@ class StateProxy(State):
# and select_related, even when mixed with model inheritance
-@python_2_unicode_compatible
class BaseUser(models.Model):
name = models.CharField(max_length=255)
@@ -169,7 +164,6 @@ class ProxyTrackerUser(TrackerUser):
proxy = True
-@python_2_unicode_compatible
class Issue(models.Model):
summary = models.CharField(max_length=255)
assignee = models.ForeignKey(ProxyTrackerUser, models.CASCADE, related_name='issues')