diff --git a/locker_server/api/v1_0/exclude_domains/serializers.py b/locker_server/api/v1_0/exclude_domains/serializers.py index 6f75fea..711fa1f 100644 --- a/locker_server/api/v1_0/exclude_domains/serializers.py +++ b/locker_server/api/v1_0/exclude_domains/serializers.py @@ -23,8 +23,8 @@ def validate(self, data): raise serializers.ValidationError(detail={'domain': [ 'This domain or ip is invalid', 'Domain hoặc ip không hợp lệ' ]}) - if is_domain: - data["domain"] = extract_root_domain(domain=domain) + # if is_domain: + # data["domain"] = extract_root_domain(domain=domain) return data def to_representation(self, instance):