diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2018-10-10 02:50:00 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-09 20:50:00 -0400 |
| commit | f3d3338e06d571a529bb2046428eeac8e56bcbf6 (patch) | |
| tree | 2283bb15b7d12c5732003d8266525c2697c0460d | |
| parent | b5d7604cb0c130af1d7378496a69dc481d72a197 (diff) | |
Fixed #29829 -- Remove unused code in contrib.sites.models._simple_domain_name_validator().
| -rw-r--r-- | django/contrib/sites/models.py | 2 |
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( |
