Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed python 3 support. Refs #17320

  • Loading branch information...
commit b88bf9f1257080d5dcc08792c8e57118fb183987 1 parent e3e0f49
Florian Apolloner authored February 24, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/contrib/sites/models.py
4  django/contrib/sites/models.py
... ...
@@ -1,3 +1,5 @@
  1
+from __future__ import unicode_literals
  2
+
1 3
 import string
2 4
 
3 5
 from django.db import models
@@ -20,7 +22,7 @@ def _simple_domain_name_validator(value):
20 22
     checks = ((s in value) for s in string.whitespace)
21 23
     if any(checks):
22 24
         raise ValidationError(
23  
-            _(u"The domain name cannot contain any spaces or tabs."))
  25
+            _("The domain name cannot contain any spaces or tabs."))
24 26
 
25 27
 
26 28
 class SiteManager(models.Manager):

0 notes on commit b88bf9f

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