944008d475
Closes #12135 : Prevent the deletion of interfaces with children ( #14091 )
...
* Closes #12135 : Prevent the deletion of interfaces with children
* Change PROTECT to RESTRICT
* Extend handle_protectederror() to also handle RestrictedError
* Fix string translation
* Update migrations
* Support bulk removal of parent interfaces via UI if all children are included
* Add support for the bulk deletion of restricted objects via REST API
2023-11-01 13:47:14 -04:00
b0541be107
13745 device type migration ( #13747 )
...
* 13745 update migrations to use batch_size
* 13745 update migrations to use subquery update
* 13745 refactor and update other counter migrations
2023-09-18 09:59:26 -04:00
aebf3288d1
Fixes #13605 : Specify batch size for cached counter migrations ( #13610 )
...
* Specify batch size for cached counter migrations
* Remove list() casting of querysets
2023-08-30 09:18:24 -04:00
752e26c7de
Adds config template to vm model ( #13450 )
...
* adds config template to vm model #12461
* Add translation tags; collapse config data
* i18n cleanup
* Establish parity with DeviceRenderConfigView
* Move config_template field to RenderConfigMixin
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-14 15:43:28 -04:00
149a496011
6347 Cache the number of each component type assigned to devices/VMs ( #12632 )
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-25 09:39:05 -04:00
bc6b5bc4be
Closes #10545 : Standardize description & comment fields on primary models ( #10834 )
...
* Standardize description & comments fields on primary models
* Update REST API serializers
* Update forms
* Update tables
* Update templates
2022-11-04 08:28:09 -04:00
e2f5ee661a
Clean up redundant NestedGroupModel, OrganizationalModel fields
2022-11-03 13:59:44 -04:00
af8bb0c4b9
10348 add decimal custom field ( #10422 )
...
* 10348 add decimal custom field
* 10348 fix tests
* 10348 add documentation
* Rearrange custom fields to be ordered consistently
* Rename number_field to integer_field for clarity
* Clean up validation logic
* Apply suggested changes from PR
* Store decimal custom field values natively
* Fix filter test
* Update custom field model migrations to use new encoder
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 16:03:24 -04:00
1d4f828b93
Device/VM unique constraints ignore case for name field
2022-09-27 16:47:56 -04:00
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00
ec6457bcd3
Remove custom validate_unique() methods
2022-09-27 14:28:21 -04:00
db42589cca
Closes #5303 : A virtual machine may be assigned to a site and/or cluster
2022-05-26 14:59:49 -04:00
b331f047af
Closes #8222 : Enable the assignment of a VM to a specific host device within a cluster
2022-05-25 16:01:10 -04:00
64146b8cb1
Closes #8471 : Add status field to Cluster
2022-05-19 16:13:22 -04:00
c1b7f09530
Ensure legacy data checks run before other migrations
2022-04-05 15:56:21 -04:00
272d6e7437
Closes #8463 : Change the created field on all change-logged models from date to datetime
2022-02-08 14:41:44 -05:00
3651ef53e3
#7852 : Extend VRF assignment to VM interfaces
2022-02-07 09:54:00 -05:00
e4abbfb2c6
Closes #8454 : Set DEFAULT_AUTO_FIELD to BigAutoField
2022-01-25 17:37:06 -05:00
e1e2c76ae1
Add bridge field to Interface, VMInterface models
2021-10-21 16:30:18 -04:00
cfb3897047
Add tags to organizational & nested group models
2021-10-21 10:51:02 -04:00
8375995680
Closes #1943 : Relax uniqueness constraint on cluster names
2021-10-19 13:06:41 -04:00
3387282de4
Resolve migration dependencies
2021-07-09 11:51:42 -04:00
c82470e4df
Add re-initialized migrations for v2.11.0
2021-07-09 11:11:21 -04:00
4383425060
Delete pre-2.11.0 migrations
2021-07-09 10:57:07 -04:00
9ed76400de
Closes #6179 : Enable natural ordering for virtual machines
2021-04-20 09:37:43 -04:00
a3721a94ce
Closes #6121 : Extend parent interface assignment to VM interfaces
2021-04-09 10:53:05 -04:00
2bb4a81e23
Closes #5975 : Allow partial vCPU allocations for virtual machines
2021-03-16 11:52:59 -04:00
fc5bb966f0
Declare TaggableManager on PrimaryModel base class
2021-03-10 14:32:50 -05:00
ac0c54cce4
#5401 : Add custom field support for VMInterface
2021-03-10 13:49:10 -05:00
9c967ee3ea
Fixes #5913 : Improve change logging ( #5924 )
...
* Initial work on #5913
* Provide per-line diff highlighting
* BulkDeteView should delete objects individually to secure a pre-change snapshot
* Add changelog tests for bulk operations
2021-03-04 13:06:04 -05:00
1dcd857ca6
Closes #5370 : Extend custom field support to organizational models
2021-02-26 16:25:37 -05:00
7e6cb9d186
Closes #1638 : Migrate all primary keys to 64-bit integers
2021-02-26 16:12:52 -05:00
bec7ea7072
Standardize model types based on function
2021-02-24 21:01:16 -05:00
c9c8d337a0
Closes #5011 : Standardized name field lengths across all models
2020-10-15 15:37:34 -04:00
9b16d6df2e
Merge v2.9.4 release
2020-09-23 16:11:00 -04:00
c891f43b14
Fixes #5050 : Fix potential failure on 0016_replicate_interfaces schema migration from old release
2020-09-09 10:29:17 -04:00
5b3de8defe
Use DjangoJSONEncoder for encoding custom field data
2020-08-25 13:57:18 -04:00
879166d939
Initial work on reimplementing custom fields
2020-08-21 15:16:33 -04:00
d7e2acd0ad
Optimize schema migration for VM interface replication
2020-08-10 13:53:28 -04:00
78bb2e12fe
Clean up migration output
2020-07-23 14:03:19 -04:00
21a750e8ec
Change Postgres-specific JSONField to stock Django field
2020-07-16 12:02:49 -04:00
e53839ca2a
Add progress counter to VM interface replication migration
2020-07-13 13:13:37 -04:00
6abb7e8f4d
#4721 : Tweak migrations to ensure Interface.device cannot be null
2020-07-02 13:12:37 -04:00
6663844a86
Rename 'vm_interface' to 'vminterface'; misc cleanup
2020-06-24 09:27:30 -04:00
75354a8a78
Rename Interface to VMInterface
2020-06-23 13:21:44 -04:00
d1bd010e05
Fix Interface tag replication in schema migration
2020-06-23 12:50:22 -04:00
6cb31a274f
Initial work on #4721 (WIP)
2020-06-22 13:10:56 -04:00
6e832de4a9
Remove squashed migrations
2020-04-29 09:31:52 -04:00
9f5b138b0f
Add migrations for description fields
2020-03-13 16:35:36 -04:00
28350d84f9
Update model ordering parameters to ensure deterministic ordering
2020-01-15 13:20:44 -05:00