Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed python 3 support. Refs #17320

  • Loading branch information...
commit b88bf9f1257080d5dcc08792c8e57118fb183987 1 parent e3e0f49
@apollo13 apollo13 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/contrib/sites/models.py
View
4 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):

0 comments on commit b88bf9f

Please sign in to comment.
Something went wrong with that request. Please try again.