mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
Support 202108 (#1051)
* add OPERATIONS_EMAIL setting * fixes #1019: redundant saves to deleted netixlans during ix-f import * private pocs are no longer valid (#944) * poetry relock (handleref update) * fixes #1032: __id api filter not working * Additional self-selection fields for Facilities #800 * advanced search fields for available voltage, property and diverse serving substations (#1016) * When network sets netixlan speed to 1200000 only 1T is shown instead of 1.2T ... sometimes #500 * add search-data * comment out mount points for api-cache, search-data, django-peeringdb * poetry relock (django-peeringdb 2.9.0) * linting Co-authored-by: Stefan Pratter <stefan@20c.com>
This commit is contained in:
@@ -14,6 +14,20 @@ from peeringdb_server.inet import IRR_SOURCE, network_is_pdb_valid
|
||||
from peeringdb_server.request import bypass_validation
|
||||
|
||||
|
||||
def validate_poc_visible(visible):
|
||||
|
||||
# we no longer allow "Private" network contacts
|
||||
# however until all private network contacts have
|
||||
# been either changed or deleted we cannot remove
|
||||
# the value from the choices set for the field
|
||||
#
|
||||
# for now we handle validation here (see #944)
|
||||
|
||||
if visible == "Private":
|
||||
raise ValidationError(_("Private contacts are no longer supported."))
|
||||
return visible
|
||||
|
||||
|
||||
def validate_phonenumber(phonenumber, country=None):
|
||||
"""
|
||||
Validate a phonenumber to E.164
|
||||
|
Reference in New Issue
Block a user