Seth Foster 7e83ddc968
Fix URLField to allow numbers in top level domain
Add a custom regex to URLField that allows numbers to be present in the
top level domain, e.g. https://towerhost.org42

Set by variable allow_numbers_in_top_level_domain in URLField __init__,
and is set to True by default. If set to False, it will use the regex
specified in the built-in django URLValidator class.

This solution was originally implemented in LDAPServerURIField, but is
now implemented in URLField to support this behavior more generally. The
changes in LDAPServerURIField are longer needed and have been removed in
this commit.

Adds unit testing to make sure URLField changes handle regex input
and settings correctly.
2019-10-28 13:47:01 -04:00
..
2016-09-26 22:14:47 -04:00
2019-04-12 11:28:27 -04:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2017-11-10 17:04:33 -05:00