18417 fix validation message

This commit is contained in:
Arthur 2025-03-18 08:46:29 -07:00
parent 1dc249c13f
commit 807ba450d7

View File

@ -376,7 +376,7 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
if ( if (
self.outer_width is not None or self.outer_depth is not None or self.outer_height is not None self.outer_width is not None or self.outer_depth is not None or self.outer_height is not None
) and not self.outer_unit: ) and not self.outer_unit:
raise ValidationError(_("Must specify a unit when setting an outer width/depth")) raise ValidationError(_("Must specify a unit when setting an outer width/depth/height"))
# Validate max_weight and weight_unit # Validate max_weight and weight_unit
if self.max_weight and not self.weight_unit: if self.max_weight and not self.weight_unit: