summaryrefslogtreecommitdiff
path: root/tests/m2m_regress
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/m2m_regress
parentd7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff)
downloaddjango-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/m2m_regress')
-rw-r--r--tests/m2m_regress/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/m2m_regress/models.py b/tests/m2m_regress/models.py
index 57f02b8f90..70966bd0b8 100644
--- a/tests/m2m_regress/models.py
+++ b/tests/m2m_regress/models.py
@@ -1,11 +1,9 @@
from django.contrib.auth import models as auth
from django.db import models
-from django.utils.encoding import python_2_unicode_compatible
# No related name is needed here, since symmetrical relations are not
# explicitly reversible.
-@python_2_unicode_compatible
class SelfRefer(models.Model):
name = models.CharField(max_length=10)
references = models.ManyToManyField('self')
@@ -15,7 +13,6 @@ class SelfRefer(models.Model):
return self.name
-@python_2_unicode_compatible
class Tag(models.Model):
name = models.CharField(max_length=10)
@@ -24,7 +21,6 @@ class Tag(models.Model):
# Regression for #11956 -- a many to many to the base class
-@python_2_unicode_compatible
class TagCollection(Tag):
tags = models.ManyToManyField(Tag, related_name='tag_collections')
@@ -34,7 +30,6 @@ class TagCollection(Tag):
# A related_name is required on one of the ManyToManyField entries here because
# they are both addressable as reverse relations from Tag.
-@python_2_unicode_compatible
class Entry(models.Model):
name = models.CharField(max_length=10)
topics = models.ManyToManyField(Tag)
@@ -54,7 +49,6 @@ class SelfReferChildSibling(SelfRefer):
# Many-to-Many relation between models, where one of the PK's isn't an Autofield
-@python_2_unicode_compatible
class Line(models.Model):
name = models.CharField(max_length=100)