mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #10695: Rename forms/models.py to forms/model_forms.py
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
from .bulk_edit import *
|
from .bulk_edit import *
|
||||||
from .bulk_import import *
|
from .bulk_import import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .models import *
|
from .model_forms import *
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .object_create import *
|
from .object_create import *
|
||||||
from .object_import import *
|
from .object_import import *
|
||||||
|
@ -3,7 +3,7 @@ from django import forms
|
|||||||
from circuits.models import Circuit, CircuitTermination, Provider
|
from circuits.models import Circuit, CircuitTermination, Provider
|
||||||
from dcim.models import *
|
from dcim.models import *
|
||||||
from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField
|
from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField
|
||||||
from .models import CableForm
|
from .model_forms import CableForm
|
||||||
|
|
||||||
|
|
||||||
def get_cable_form(a_type, b_type):
|
def get_cable_form(a_type, b_type):
|
||||||
|
@ -3,7 +3,7 @@ from django import forms
|
|||||||
from dcim.models import *
|
from dcim.models import *
|
||||||
from netbox.forms import NetBoxModelForm
|
from netbox.forms import NetBoxModelForm
|
||||||
from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField, ExpandableNameField
|
from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField, ExpandableNameField
|
||||||
from . import models as model_forms
|
from . import model_forms
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ComponentCreateForm',
|
'ComponentCreateForm',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .bulk_edit import *
|
from .bulk_edit import *
|
||||||
from .bulk_import import *
|
from .bulk_import import *
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .bulk_create import *
|
from .bulk_create import *
|
||||||
from .bulk_edit import *
|
from .bulk_edit import *
|
||||||
|
@ -3,14 +3,12 @@ from django.contrib.contenttypes.models import ContentType
|
|||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|
||||||
from dcim.models import Device, Interface, Location, Rack, Region, Site, SiteGroup
|
from dcim.models import Device, Interface, Location, Rack, Region, Site, SiteGroup
|
||||||
from extras.models import Tag
|
|
||||||
from ipam.choices import *
|
from ipam.choices import *
|
||||||
from ipam.constants import *
|
from ipam.constants import *
|
||||||
from ipam.formfields import IPNetworkFormField
|
from ipam.formfields import IPNetworkFormField
|
||||||
from ipam.models import *
|
from ipam.models import *
|
||||||
from netbox.forms import NetBoxModelForm
|
from netbox.forms import NetBoxModelForm
|
||||||
from tenancy.forms import TenancyForm
|
from tenancy.forms import TenancyForm
|
||||||
from tenancy.models import Tenant
|
|
||||||
from utilities.exceptions import PermissionsViolation
|
from utilities.exceptions import PermissionsViolation
|
||||||
from utilities.forms import (
|
from utilities.forms import (
|
||||||
add_blank_choice, BootstrapMixin, ContentTypeChoiceField, DatePicker, DynamicModelChoiceField,
|
add_blank_choice, BootstrapMixin, ContentTypeChoiceField, DatePicker, DynamicModelChoiceField,
|
@ -1,5 +1,5 @@
|
|||||||
from .forms import *
|
from .forms import *
|
||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .bulk_edit import *
|
from .bulk_edit import *
|
||||||
from .bulk_import import *
|
from .bulk_import import *
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .object_create import *
|
from .object_create import *
|
||||||
from .bulk_create import *
|
from .bulk_create import *
|
||||||
|
@ -3,7 +3,7 @@ from django.contrib.contenttypes.models import ContentType
|
|||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|
||||||
from dcim.forms.common import InterfaceCommonForm
|
from dcim.forms.common import InterfaceCommonForm
|
||||||
from dcim.forms.models import INTERFACE_MODE_HELP_TEXT
|
from dcim.forms.model_forms import INTERFACE_MODE_HELP_TEXT
|
||||||
from dcim.models import Device, DeviceRole, Platform, Rack, Region, Site, SiteGroup
|
from dcim.models import Device, DeviceRole, Platform, Rack, Region, Site, SiteGroup
|
||||||
from ipam.models import IPAddress, VLAN, VLANGroup, VRF
|
from ipam.models import IPAddress, VLAN, VLANGroup, VRF
|
||||||
from netbox.forms import NetBoxModelForm
|
from netbox.forms import NetBoxModelForm
|
@ -1,5 +1,5 @@
|
|||||||
from utilities.forms import ExpandableNameField
|
from utilities.forms import ExpandableNameField
|
||||||
from .models import VMInterfaceForm
|
from .model_forms import VMInterfaceForm
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'VMInterfaceCreateForm',
|
'VMInterfaceCreateForm',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .models import *
|
from .model_forms import *
|
||||||
from .filtersets import *
|
from .filtersets import *
|
||||||
from .bulk_edit import *
|
from .bulk_edit import *
|
||||||
from .bulk_import import *
|
from .bulk_import import *
|
||||||
|
Reference in New Issue
Block a user