diff --git a/base_dns_infrastructure/models/dns_record/common.py b/base_dns_infrastructure/models/dns_record/common.py index 748b5dc..35b46c9 100644 --- a/base_dns_infrastructure/models/dns_record/common.py +++ b/base_dns_infrastructure/models/dns_record/common.py @@ -73,10 +73,8 @@ def _check_value(self): ): raise ValidationError( _( - "%%(value)s does not match validation rule for a %%(type)s record" - ), - ( - rec_id.value, - rec_id.type_id.display_name, - ), + "%(value)s does not match validation rule for a %(type)s record", + value=rec_id.value, + type=rec_id.type_id.display_name, + ) )