diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2013-02-24 18:35:08 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-02-24 18:35:08 +0100 |
| commit | b88bf9f1257080d5dcc08792c8e57118fb183987 (patch) | |
| tree | e37fbbda8a2aefdce431b00e5b746a823d9e9aad | |
| parent | e3e0f49ecebeaaa6ed69bcc5e1655688e8321c42 (diff) | |
Fixed python 3 support. Refs #17320
| -rw-r--r-- | django/contrib/sites/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py index 1ce9bf3185..879497deb3 100644 --- a/django/contrib/sites/models.py +++ b/django/contrib/sites/models.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + import string from django.db import models @@ -20,7 +22,7 @@ def _simple_domain_name_validator(value): checks = ((s in value) for s in string.whitespace) if any(checks): raise ValidationError( - _(u"The domain name cannot contain any spaces or tabs.")) + _("The domain name cannot contain any spaces or tabs.")) class SiteManager(models.Manager): |
