Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing reference from Netbox custom MultipleChoiceField subclass and adding Polish currency. #90

Closed
wants to merge 7 commits into from
6 changes: 3 additions & 3 deletions src/netbox_contract/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.contenttypes.models import ContentType
import django_filters
from netbox.forms import NetBoxModelForm, NetBoxModelFilterSetForm, NetBoxModelBulkEditForm, NetBoxModelImportForm
from utilities.forms.fields import CommentField, CSVChoiceField, DynamicModelChoiceField, DynamicModelMultipleChoiceField, MultipleChoiceField, CSVModelChoiceField, SlugField, CSVContentTypeField
from utilities.forms.fields import CommentField, CSVChoiceField, DynamicModelChoiceField, DynamicModelMultipleChoiceField, CSVModelChoiceField, SlugField, CSVContentTypeField
from utilities.forms.widgets import DatePicker
from extras.filters import TagFilter
from circuits.models import Circuit
Expand Down Expand Up @@ -66,9 +66,9 @@ class ContractFilterSetForm(NetBoxModelFilterSetForm):
internal_partie= forms.CharField(
required=False
)
status = MultipleChoiceField(
status = django_filters.MultipleChoiceFilter(
choices=StatusChoices,
required= False
required=False
)
parent=DynamicModelChoiceField(
queryset=Contract.objects.all(),
Expand Down
1 change: 1 addition & 0 deletions src/netbox_contract/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class CurrencyChoices(ChoiceSet):
(CURRENCY_USD, 'USD'),
('eur', 'EUR'),
('chf', 'CHF'),
('pln', 'PLN'),
]

class ServiceProvider(NetBoxModel):
Expand Down