summaryrefslogtreecommitdiff
path: root/tests/fixtures
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/fixtures
parentd7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff)
downloaddjango-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/models.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/fixtures/models.py b/tests/fixtures/models.py
index 78161c8474..b3ebb8fc5d 100644
--- a/tests/fixtures/models.py
+++ b/tests/fixtures/models.py
@@ -14,10 +14,8 @@ from django.contrib.auth.models import Permission
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
-from django.utils.encoding import python_2_unicode_compatible
-@python_2_unicode_compatible
class Category(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
@@ -29,7 +27,6 @@ class Category(models.Model):
ordering = ('title',)
-@python_2_unicode_compatible
class Article(models.Model):
headline = models.CharField(max_length=100, default='Default headline')
pub_date = models.DateTimeField()
@@ -41,7 +38,6 @@ class Article(models.Model):
ordering = ('-pub_date', 'headline')
-@python_2_unicode_compatible
class Blog(models.Model):
name = models.CharField(max_length=100)
featured = models.ForeignKey(Article, models.CASCADE, related_name='fixtures_featured_set')
@@ -52,7 +48,6 @@ class Blog(models.Model):
return self.name
-@python_2_unicode_compatible
class Tag(models.Model):
name = models.CharField(max_length=100)
tagged_type = models.ForeignKey(ContentType, models.CASCADE, related_name="fixtures_tag_set")
@@ -69,7 +64,6 @@ class PersonManager(models.Manager):
return self.get(name=name)
-@python_2_unicode_compatible
class Person(models.Model):
objects = PersonManager()
name = models.CharField(max_length=100)
@@ -99,7 +93,6 @@ class ProxySpy(Spy):
proxy = True
-@python_2_unicode_compatible
class Visa(models.Model):
person = models.ForeignKey(Person, models.CASCADE)
permissions = models.ManyToManyField(Permission, blank=True)
@@ -109,7 +102,6 @@ class Visa(models.Model):
', '.join(p.name for p in self.permissions.all()))
-@python_2_unicode_compatible
class Book(models.Model):
name = models.CharField(max_length=100)
authors = models.ManyToManyField(Person)