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/contenttypes_tests/models.py | |
| parent | d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff) | |
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/contenttypes_tests/models.py')
| -rw-r--r-- | tests/contenttypes_tests/models.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/contenttypes_tests/models.py b/tests/contenttypes_tests/models.py index 1640ee3b8c..0aa8bbf0bc 100644 --- a/tests/contenttypes_tests/models.py +++ b/tests/contenttypes_tests/models.py @@ -4,11 +4,9 @@ from django.contrib.contenttypes.fields import ( from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import SiteManager from django.db import models -from django.utils.encoding import python_2_unicode_compatible from django.utils.http import urlquote -@python_2_unicode_compatible class Site(models.Model): domain = models.CharField(max_length=100) objects = SiteManager() @@ -17,7 +15,6 @@ class Site(models.Model): return self.domain -@python_2_unicode_compatible class Author(models.Model): name = models.CharField(max_length=100) @@ -28,7 +25,6 @@ class Author(models.Model): return '/authors/%s/' % self.id -@python_2_unicode_compatible class Article(models.Model): title = models.CharField(max_length=100) slug = models.SlugField() @@ -39,7 +35,6 @@ class Article(models.Model): return self.title -@python_2_unicode_compatible class SchemeIncludedURL(models.Model): url = models.URLField(max_length=100) @@ -59,7 +54,6 @@ class ProxyModel(ConcreteModel): proxy = True -@python_2_unicode_compatible class FooWithoutUrl(models.Model): """ Fake model not defining ``get_absolute_url`` for @@ -95,7 +89,6 @@ class Question(models.Model): answer_set = GenericRelation('Answer') -@python_2_unicode_compatible class Answer(models.Model): text = models.CharField(max_length=200) content_type = models.ForeignKey(ContentType, models.CASCADE) @@ -109,7 +102,6 @@ class Answer(models.Model): return self.text -@python_2_unicode_compatible class Post(models.Model): """An ordered tag on an item.""" title = models.CharField(max_length=200) @@ -125,7 +117,6 @@ class Post(models.Model): return self.title -@python_2_unicode_compatible class ModelWithNullFKToSite(models.Model): title = models.CharField(max_length=200) site = models.ForeignKey(Site, null=True, on_delete=models.CASCADE) |
