Jeremy Stretch
7a5cf80412
Clean up extraneous imports
2021-03-05 12:48:53 -05:00
Jeremy Stretch
20a85c1ef2
Introduce TenantColumn to simplify representation
2021-03-04 16:07:55 -05:00
Jeremy Stretch
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
Jeremy Stretch
6ed2e7b636
Closes #5894 : Use primary keys when filtering object lists by related objects in the UI
2021-03-01 17:24:30 -05:00
Jeremy Stretch
6a9b50f95d
Closes #5873 : Use numeric IDs in all object URLs
2021-02-26 17:23:23 -05:00
Jeremy Stretch
1dcd857ca6
Closes #5370 : Extend custom field support to organizational models
2021-02-26 16:25:37 -05:00
Jeremy Stretch
7e6cb9d186
Closes #1638 : Migrate all primary keys to 64-bit integers
2021-02-26 16:12:52 -05:00
Jeremy Stretch
cf78307577
Update organizational models to use custom field forms
2021-02-26 11:25:23 -05:00
Jeremy Stretch
12fbd34962
Introduce NestedGroupModelSerializer
2021-02-25 17:15:42 -05:00
Jeremy Stretch
ed059d80d6
Introduce OrganizationalModelSerializer
2021-02-25 16:44:16 -05:00
Jeremy Stretch
664a39911c
Add custom field support for organizational models to API serializers
2021-02-25 15:58:13 -05:00
Jeremy Stretch
cef8204f40
Merge tags fields with primary object fields in form display
2021-02-25 14:03:14 -05:00
Jeremy Stretch
42e82f0ead
Update object edit template to use fieldsets where possible
2021-02-25 13:51:48 -05:00
Luke Anderson
d2c8aae59c
Fix #5819 and #5872 - Fix Primary IP Sorting Issues for Devices and VMs
2021-02-25 22:32:51 +10:30
Jeremy Stretch
bec7ea7072
Standardize model types based on function
2021-02-24 21:01:16 -05:00
Jeremy Stretch
f469920759
Fixes #5640 : Fix permissions assessment when adding VM interfaces in bulk
2021-01-20 15:18:13 -05:00
Jeremy Stretch
8ae3331d04
Closes #5549 : Eliminate extraneous database queries when using brief API calls
2020-12-29 11:41:44 -05:00
Jeremy Stretch
b2e05aafc1
Closes #5531 : Ensure consistent calls to parent clean() methods for models, forms
2020-12-28 12:54:42 -05:00
Jeremy Stretch
442dee72b5
Fixes #5499 : Fix filtering of displayed device/VM interfaces by regex
2020-12-18 15:02:52 -05:00
Jeremy Stretch
4a066a1913
Rename get_subquery() to count_related()
2020-12-17 14:47:49 -05:00
Jeremy Stretch
91083fd6c5
Call Coalesce() inside get_queryset()
2020-12-17 14:45:50 -05:00
Jeremy Stretch
202e7d0ebf
Fixes #5486 : Optimize retrieval of config context data for device/VM REST API views
2020-12-17 14:03:10 -05:00
Daniel Sheppard
3c2b2f26b9
Fixes : #5450 - Added Coalesce to viewsets for the _count functions
2020-12-15 12:50:28 -06:00
Jeremy Stretch
43d7d5570e
Merge branch 'develop' into develop-2.10
2020-12-10 10:26:15 -05:00
Jeremy Stretch
22bb700f94
Fixes #5396 : Fix uniqueness constraint for virtual machine names
2020-12-03 13:40:42 -05:00
Jeremy Stretch
5a4234fcb9
Standardize validation of interface VLAN assignments
2020-12-02 14:19:02 -05:00
Jeremy Stretch
915cf3e715
Merge branch 'develop' into develop-2.10
2020-12-01 11:42:55 -05:00
Jeremy Stretch
f55e966c8f
Closes #4865 : Replace all Count() annotations with subqueries ( #5385 )
...
* Convert circuits to use subqueries
* Convert dcim to use subqueries
* Convert extras to use subqueries
* Convert ipam to use subqueries
* Convert secrets to use subqueries
* Convert virtualization to use subqueries
* Update global search view to use subqueries where appropriate
* Remove extraneous order_by() calls
2020-11-25 15:49:18 -05:00
Jeremy Stretch
4e25c70f96
Merge branch 'develop' into develop-2.10
2020-11-24 16:50:21 -05:00
Jeremy Stretch
6fb080ff4c
Rename CustomFieldFilterSet
2020-11-23 14:47:54 -05:00
Jeremy Stretch
3dd2e4c84c
Fixes #5360 : Clear VLAN assignments when setting interface mode to none
2020-11-20 14:40:21 -05:00
Jeremy Stretch
1d922ee813
Migrate all ObjectView subclasses to use get_extra_context()
2020-11-19 15:59:11 -05:00
Jeremy Stretch
d5d87e0fdd
Update templates to use "object" context var
2020-11-19 13:22:33 -05:00
Jeremy Stretch
11fa348575
Fixes #5358 : Fix user table configuration for VM interfaces
2020-11-19 09:45:01 -05:00
Jeremy Stretch
4a8a1ce45c
Check for extraneous custom field data on clean()
2020-11-12 12:18:31 -05:00
Jeremy Stretch
a3675854be
Clean up generic view templates
2020-11-11 16:58:29 -05:00
Jeremy Stretch
b3c770216e
Relocate and group generic views
2020-11-11 16:07:38 -05:00
Jeremy Stretch
72dace29b7
Replace Glyphicons with Material Design
2020-11-06 14:49:14 -05:00
Jeremy Stretch
23cce55246
Merge branch 'develop' into develop-2.10
2020-11-05 15:33:07 -05:00
Jeremy Stretch
c53990c739
Closes #5307 : Add a region selector for every site form field
2020-11-04 15:27:41 -05:00
Jeremy Stretch
7598b891c1
Add initial_params to all forms
2020-11-04 11:09:13 -05:00
Jeremy Stretch
2bb79a2773
Add missing bulk update test data
2020-11-02 16:56:04 -05:00
Jeremy Stretch
9a9babfc35
Remove extraneous prefetch_related() calls from object list views
2020-10-30 16:54:41 -04:00
Jeremy Stretch
fcb5e6ae1c
Merge branch 'develop' into develop-2.10
2020-10-30 10:38:05 -04:00
John Anderson
28c17f33ab
move get_queryset() to common mixin
2020-10-30 02:56:43 -04:00
John Anderson
22d2289ed2
add support for regions and vms
2020-10-23 01:18:04 -04:00
Jeremy Stretch
502b66367c
Convert VM interfaces list to table
2020-10-16 17:01:55 -04:00
Jeremy Stretch
73bf3b9498
Reorganize DCIM tables
2020-10-16 10:39:13 -04:00
Jeremy Stretch
c9c8d337a0
Closes #5011 : Standardized name field lengths across all models
2020-10-15 15:37:34 -04:00
Jeremy Stretch
c0c5f52ed9
Reorganize REST API components under netbox app
2020-10-13 15:57:21 -04:00
Jeremy Stretch
96650b0216
Merge branch 'develop' into develop-2.10
2020-10-09 13:52:16 -04:00
Jeremy Stretch
b5a65bc66c
Fixes #5211 : Add missing has_primary_ip filter for virtual machines
2020-10-09 11:46:16 -04:00
Jeremy Stretch
12e2537222
General cleanup of tables
2020-09-25 14:18:29 -04:00
Jeremy Stretch
28f0da0bc1
Introduce LinkedCountColumn to standardize approach to counting related items in tables
2020-09-25 12:42:17 -04:00
Jeremy Stretch
18a8a91d57
Introduce ChoiceFieldColumn to replace template columns
2020-09-25 10:52:14 -04:00
Jeremy Stretch
1b55285167
Relocate CSS classes for ChoiceFields from model to ChoiceSet
2020-09-24 16:35:53 -04:00
Jeremy Stretch
9b16d6df2e
Merge v2.9.4 release
2020-09-23 16:11:00 -04:00
Jeremy Stretch
38ed612cb9
Add test for API bulk updates
2020-09-22 13:50:55 -04:00
Jeremy Stretch
43f3e682c5
Support assignment of secrets to virtual machines
2020-09-18 15:39:41 -04:00
Jeremy Stretch
c891f43b14
Fixes #5050 : Fix potential failure on 0016_replicate_interfaces schema migration from old release
2020-09-09 10:29:17 -04:00
Jeremy Stretch
c5ab89d71e
Merge branch 'develop-2.10' into 4878-custom-fields
2020-09-04 16:14:06 -04:00
Jeremy Stretch
08c492f1f4
Merge develop into develop-2.10
2020-09-04 16:09:05 -04:00
Jeremy Stretch
523c32b8af
Fixes #5061 : Allow adding/removing tags when bulk editing virtual machine interfaces
2020-08-27 13:26:41 -04:00
Jeremy Stretch
fa73bf8e87
Closes #5505 : Add tags column to device/VM component list tables
2020-08-27 09:43:20 -04:00
Jeremy Stretch
5b3de8defe
Use DjangoJSONEncoder for encoding custom field data
2020-08-25 13:57:18 -04:00
Jeremy Stretch
6e28490b84
Fixes #5038 : Fix validation of primary IPs assigned to virtual machines
2020-08-24 09:41:04 -04:00
Jeremy Stretch
2276603ac3
Drop CustomFieldValue
2020-08-21 16:21:11 -04:00
Jeremy Stretch
879166d939
Initial work on reimplementing custom fields
2020-08-21 15:16:33 -04:00
Jeremy Stretch
ec66e1a5c0
Closes #4349 : Drop support for embedded graphs
2020-08-21 11:57:46 -04:00
Jeremy Stretch
fd139a77f5
Closes #4997 : Introduce OrderedDefaultRouter; move root API views to views.py
2020-08-13 12:49:49 -04:00
Jeremy Stretch
6d8cb6dac3
Merge pull request #4978 from netbox-community/4922-optimize-interface-replication
...
Closes #4922 : Optimize schema migration for VM interface replication
2020-08-13 09:34:24 -04:00
Jeremy Stretch
53f9f82317
Set display_field where needed
2020-08-13 09:27:21 -04:00
Jeremy Stretch
b891b407d4
Add brief_mode to DynamicModelChoiceMixin
2020-08-12 14:15:34 -04:00
Jeremy Stretch
c40df97ffa
Rename add_additional_query_param()
2020-08-12 13:59:11 -04:00
Jeremy Stretch
100c8fef20
Add support for referencing peer field values in query_params
2020-08-12 12:37:17 -04:00
Jeremy Stretch
d8d752b623
Fix form for adding devices to a cluster
2020-08-12 10:14:21 -04:00
Jeremy Stretch
b917403c93
Replace 'nullable' attribute with null_option
2020-08-12 10:05:12 -04:00
Jeremy Stretch
8a8b4e728a
Move null_option to DynamicModelChoiceMixin
2020-08-12 09:47:13 -04:00
Jeremy Stretch
f3fb85933f
Add query_params attribute to DynamicModelChoiceMixin
2020-08-12 09:28:24 -04:00
Jeremy Stretch
a831e525da
Remove value_field from APISelect; reference to_field_name on field
2020-08-11 17:19:40 -04:00
Jeremy Stretch
fdc43f8279
Add display_field kwarg to DynamicModelChoiceMixin
2020-08-11 17:00:28 -04:00
Jeremy Stretch
d7e2acd0ad
Optimize schema migration for VM interface replication
2020-08-10 13:53:28 -04:00
Jeremy Stretch
65b42c93b0
Merge branch 'develop' into develop-2.9
2020-08-05 09:15:10 -04:00
Jeremy Stretch
76c2fd3414
Fixes #4926 : Fix ordering of VM interfaces in REST API endpoint
2020-07-30 09:10:06 -04:00
Jeremy Stretch
78bb2e12fe
Clean up migration output
2020-07-23 14:03:19 -04:00
Jeremy Stretch
cb36f9fdb3
Remove restriction enforcement from RestrictedQuerySet
2020-07-23 12:48:03 -04:00
Jeremy Stretch
1714902f88
Merge branch 'develop' into develop-2.9
2020-07-21 12:57:02 -04:00
Jeremy Stretch
136d3118d2
Fixes #4872 : Enable filtering virtual machine interfaces by tag
2020-07-21 09:41:00 -04:00
Jeremy Stretch
8514a5427c
Update related object counts to use dunders in accessor
2020-07-20 13:00:33 -04:00
Jeremy Stretch
0f679e1f03
Closes #4871 : Specify ordering for querysets using annotate() to count related objects
2020-07-20 12:07:19 -04:00
Jeremy Stretch
39dc1f882a
Merge branch 'develop-2.9' into django-31
2020-07-20 11:15:01 -04:00
Jeremy Stretch
ba50bfa939
Address some of the django_tables2 deprecation warnings
2020-07-16 16:52:45 -04:00
Jeremy Stretch
21a750e8ec
Change Postgres-specific JSONField to stock Django field
2020-07-16 12:02:49 -04:00
Jeremy Stretch
19d0d6ff10
Closes #4857 : Drop support for legacy numeric choice field values
2020-07-15 16:54:33 -04:00
Jeremy Stretch
9f7ed25e74
Add assigned IP addresses and VLANs to interface tables
2020-07-13 16:18:17 -04:00
Jeremy Stretch
013a2a35e0
Add cluster and virtual machine filters to VM interfaces list
2020-07-13 15:43:54 -04:00
Jeremy Stretch
9cece39ee9
Remove incorrect bulk edit test data
2020-07-13 15:26:06 -04:00
Jeremy Stretch
e53839ca2a
Add progress counter to VM interface replication migration
2020-07-13 13:13:37 -04:00
Jeremy Stretch
a260019a7f
#4843 : Use subqueries when counting multiple types of related objects
2020-07-10 15:38:54 -04:00
Jeremy Stretch
96b3de7916
Remove extraneous queryset filter
2020-07-10 10:27:07 -04:00