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
|
Validate that the given value contains no whitespaces to prevent common
|
||||||
typos.
|
typos.
|
||||||
"""
|
"""
|
||||||
if not value:
|
|
||||||
return
|
|
||||||
checks = ((s in value) for s in string.whitespace)
|
checks = ((s in value) for s in string.whitespace)
|
||||||
if any(checks):
|
if any(checks):
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
|
|
Loading…
Reference in New Issue