Skip to content

Commit 5fba270

Browse files
Merge pull request #117 from OpenSPP/fix/spp-registry-id-validation-attribute-error
fix(spp_registry): use correct field for id type in validation error
2 parents d8d23d1 + e101a68 commit 5fba270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spp_registry/models/reg_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _onchange_id_validation(self):
126126
raise ValidationError(
127127
_(
128128
"The provided %(id_type)s ID '%(value)s' is invalid.",
129-
id_type=rec.id_type_id.name,
129+
id_type=rec.id_type_id.display,
130130
value=rec.value,
131131
)
132132
)

0 commit comments

Comments
 (0)