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/validation | |
| parent | d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff) | |
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'tests/validation')
| -rw-r--r-- | tests/validation/models.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/validation/models.py b/tests/validation/models.py index 90b2dbb79a..043aa4ded7 100644 --- a/tests/validation/models.py +++ b/tests/validation/models.py @@ -2,7 +2,6 @@ from datetime import datetime from django.core.exceptions import ValidationError from django.db import models -from django.utils.encoding import python_2_unicode_compatible def validate_answer_to_universe(value): @@ -89,7 +88,6 @@ class Article(models.Model): self.pub_date = datetime.now() -@python_2_unicode_compatible class Post(models.Model): title = models.CharField(max_length=50, unique_for_date='posted', blank=True) slug = models.CharField(max_length=50, unique_for_year='posted', blank=True) |
