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

Converted Circuit port_speed to PositiveIntegerField

This commit is contained in:
Jeremy Stretch
2016-06-20 15:33:26 -04:00
parent 10486f0a99
commit c456248e0c
6 changed files with 34 additions and 28 deletions

View File

@ -7,7 +7,7 @@ from utilities.forms import (
SlugField,
)
from .models import PORT_SPEED_CHOICES, Circuit, CircuitType, Provider
from .models import Circuit, CircuitType, Provider
#
@ -176,9 +176,8 @@ class CircuitBulkEditForm(forms.Form, BootstrapMixin):
pk = forms.ModelMultipleChoiceField(queryset=Circuit.objects.all(), widget=forms.MultipleHiddenInput)
type = forms.ModelChoiceField(queryset=CircuitType.objects.all(), required=False)
provider = forms.ModelChoiceField(queryset=Provider.objects.all(), required=False)
port_speed = forms.ChoiceField(choices=[(None, '---------')] + PORT_SPEED_CHOICES, required=False,
label='Port speed')
commit_rate = forms.IntegerField(required=False, label='Commit rate (Mbps)')
port_speed = forms.IntegerField(required=False, label='Port speed (Kbps)')
commit_rate = forms.IntegerField(required=False, label='Commit rate (Kbps)')
comments = CommentField()