Browse Source

Fixed #29829 -- Remove unused code in contrib.sites.models._simple_domain_name_validator().

Hasan Ramezani 6 years ago
parent
commit
f3d3338e06
1 changed files with 0 additions and 2 deletions
  1. 0 2
      django/contrib/sites/models.py

+ 0 - 2
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(