diff --git a/netbox/dcim/migrations/0229_interface_rf_channel_frequency_precision.py b/netbox/dcim/migrations/0229_interface_rf_channel_frequency_precision.py new file mode 100644 index 000000000..cdc88a0d3 --- /dev/null +++ b/netbox/dcim/migrations/0229_interface_rf_channel_frequency_precision.py @@ -0,0 +1,23 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dcim', '0228_cable_bundle'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='rf_channel_frequency', + field=models.DecimalField( + blank=True, + decimal_places=3, + help_text='Populated by selected channel (if set)', + max_digits=7, + null=True, + verbose_name='channel frequency (MHz)', + ), + ), + ] diff --git a/netbox/dcim/models/device_components.py b/netbox/dcim/models/device_components.py index 09dc02ae9..e10ad6e2f 100644 --- a/netbox/dcim/models/device_components.py +++ b/netbox/dcim/models/device_components.py @@ -808,7 +808,7 @@ class Interface( ) rf_channel_frequency = models.DecimalField( max_digits=7, - decimal_places=2, + decimal_places=3, blank=True, null=True, verbose_name=_('channel frequency (MHz)'),