1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #6154: Allow decimal values for cable lengths

This commit is contained in:
jeremystretch
2021-05-10 14:14:54 -04:00
parent a6d937b366
commit f3abf84e17
5 changed files with 24 additions and 3 deletions

View File

@@ -74,7 +74,9 @@ class Cable(PrimaryModel):
color = ColorField(
blank=True
)
length = models.PositiveSmallIntegerField(
length = models.DecimalField(
max_digits=8,
decimal_places=2,
blank=True,
null=True
)