mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
18 lines
419 B
Python
18 lines
419 B
Python
from django import forms
|
|
|
|
from utilities.forms import BootstrapMixin, DynamicModelChoiceField, ExpandableNameField
|
|
from .models import VirtualMachine
|
|
|
|
__all__ = (
|
|
'VMInterfaceCreateForm',
|
|
)
|
|
|
|
|
|
class VMInterfaceCreateForm(BootstrapMixin, forms.Form):
|
|
virtual_machine = DynamicModelChoiceField(
|
|
queryset=VirtualMachine.objects.all()
|
|
)
|
|
name_pattern = ExpandableNameField(
|
|
label='Name'
|
|
)
|