Fixed #29829 -- Remove unused code in contrib.sites.models._simple_domain_name_validator().
This commit is contained in:
parent
b5d7604cb0
commit
f3d3338e06
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue