summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/sites/models.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py
index 19f52e4487..4e6d3df17a 100644
--- a/django/contrib/sites/models.py
+++ b/django/contrib/sites/models.py
@@ -14,8 +14,6 @@ def _simple_domain_name_validator(value):
Validate that the given value contains no whitespaces to prevent common
typos.
"""
- if not value:
- return
checks = ((s in value) for s in string.whitespace)
if any(checks):
raise ValidationError(