mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
Update netbox/dcim/models/racks.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
92fc311ff2
commit
70ea60fd29
@ -180,7 +180,7 @@ class RackType(RackBase):
|
|||||||
|
|
||||||
# Validate outer dimensions and unit
|
# Validate outer dimensions and unit
|
||||||
if any([self.outer_width, self.outer_depth, self.outer_height]) and not self.outer_unit:
|
if any([self.outer_width, self.outer_depth, self.outer_height]) and not self.outer_unit:
|
||||||
raise ValidationError(_("Must specify a unit when setting an outer width/depth/height"))
|
raise ValidationError(_("Must specify a unit when setting an outer dimension"))
|
||||||
|
|
||||||
# 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user