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/fixtures_regress | |
parent | d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff) | |
download | django-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz |
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r-- | tests/fixtures_regress/models.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/fixtures_regress/models.py b/tests/fixtures_regress/models.py index 63e883f7d5..a631fa44d1 100644 --- a/tests/fixtures_regress/models.py +++ b/tests/fixtures_regress/models.py @@ -1,10 +1,8 @@ from django.contrib.auth.models import User from django.db import models from django.utils import six -from django.utils.encoding import python_2_unicode_compatible -@python_2_unicode_compatible class Animal(models.Model): name = models.CharField(max_length=150) latin_name = models.CharField(max_length=150) @@ -26,7 +24,6 @@ class Plant(models.Model): db_table = "Fixtures_regress_plant" -@python_2_unicode_compatible class Stuff(models.Model): name = models.CharField(max_length=20, null=True) owner = models.ForeignKey(User, models.SET_NULL, null=True) @@ -80,7 +77,6 @@ class Feature(CommonFeature): # Models to regression test #11428 -@python_2_unicode_compatible class Widget(models.Model): name = models.CharField(max_length=255) @@ -102,7 +98,6 @@ class TestManager(models.Manager): return self.get(name=key) -@python_2_unicode_compatible class Store(models.Model): objects = TestManager() name = models.CharField(max_length=255) @@ -118,7 +113,6 @@ class Store(models.Model): return (self.name,) -@python_2_unicode_compatible class Person(models.Model): objects = TestManager() name = models.CharField(max_length=255) @@ -136,7 +130,6 @@ class Person(models.Model): natural_key.dependencies = ['fixtures_regress.store'] -@python_2_unicode_compatible class Book(models.Model): name = models.CharField(max_length=255) author = models.ForeignKey(Person, models.CASCADE) @@ -158,7 +151,6 @@ class NKManager(models.Manager): return self.get(data=data) -@python_2_unicode_compatible class NKChild(Parent): data = models.CharField(max_length=10, unique=True) objects = NKManager() @@ -170,7 +162,6 @@ class NKChild(Parent): return 'NKChild %s:%s' % (self.name, self.data) -@python_2_unicode_compatible class RefToNKChild(models.Model): text = models.CharField(max_length=10) nk_fk = models.ForeignKey(NKChild, models.CASCADE, related_name='ref_fks') @@ -250,7 +241,6 @@ class M2MToSelf(models.Model): parent = models.ManyToManyField("self", blank=True) -@python_2_unicode_compatible class BaseNKModel(models.Model): """ Base model with a natural_key and a manager with `get_by_natural_key` |