Merged in [17227] from rjsparks@nostrum.com:

Allow document Additional URLs to become empty. Fixes #2864.
 - Legacy-Id: 17229
Note: SVN reference [17227] has been migrated to Git commit 0c0cc5dcf5
This commit is contained in:
Henrik Levkowetz 2020-01-14 11:09:21 +00:00
commit 3fe48041da

View file

@ -1,4 +1,4 @@
# Copyright The IETF Trust 2010-2019, All Rights Reserved
# Copyright The IETF Trust 2010-2020, All Rights Reserved
# -*- coding: utf-8 -*-
@ -1188,8 +1188,8 @@ def edit_document_urls(request, name):
def clean_urls(self):
lines = [x.strip() for x in self.cleaned_data["urls"].splitlines() if x.strip()]
url_validator = URLValidator()
errors = []
for l in lines:
errors = []
parts = l.split()
if len(parts) == 1:
errors.append("Too few fields: Expected at least url and tag: '%s'" % l)