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
9f8f9e8b97
Fixes #5345 : Fix non-deterministic ordering of prefixes and IP addresses
2020-11-16 10:17:05 -05:00
Daniel Sheppard
4896059162
Fixes : #5220 - Fix API patch request against IP-Address endpoint with null assigned_object_type
2020-10-08 12:50:29 -05:00
Jeremy Stretch
e8e4ff4111
Closes #5056 : Add interface and parent columns to IP address list
2020-08-27 13:46:31 -04:00
Joakim Bakke Hellum
fcc15d2e33
Use correct serializer for available-prefixes POST response
...
POST `/ipam/prefixes/{id}/available-prefixes/` returns single `Prefix` object, not list of `AvailablePrefix` objects.
2020-08-23 20:49:50 +02: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
bc61393256
Merge branch 'develop' into develop-2.9
2020-08-13 10:06:03 -04:00
Jeremy Stretch
acd5f21866
Fixes #4992 : Add display_name to nested VRF serializer
2020-08-13 09:56:03 -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
0f679e1f03
Closes #4871 : Specify ordering for querysets using annotate() to count related objects
2020-07-20 12:07:19 -04:00
Jeremy Stretch
a7776d2f53
Merge pull request #4849 from glennmatthews/gfm-issue-4803
...
#4803 : Family of nested address/prefix/aggregate serializes as integer, not as string
2020-07-15 09:13:12 -04:00
Glenn Matthews
087ad30d3c
Use correct serializer class for available-prefixes POST. Fixes #3240
2020-07-13 16:26:05 -04:00
Glenn Matthews
9c1dd159de
Address/prefix/aggregate family is an integer, not a string. Fixes #4803
2020-07-13 14:50:58 -04:00
Jeremy Stretch
4f00b5af4a
Miscellaneous RestrictedQuerySet cleanup
2020-07-09 15:11:18 -04:00
Jeremy Stretch
85b284be54
Fix permissions evaluation for available IPs endpoint
2020-07-08 09:31:10 -04:00
Jeremy Stretch
15f5719f44
Remove unused class IPAddressInterfaceSerializer
2020-07-06 16:51:23 -04:00
Jeremy Stretch
924f319343
Closes #4806 : Add a url field to all API serializers
2020-07-06 16:41:08 -04:00
Jeremy Stretch
eb45ad600e
Fix evaluation of RestrictedQuerySets
2020-06-29 11:35:13 -04:00
Jeremy Stretch
7b24984280
Update IPAddressSerializer
2020-06-22 15:39:57 -04:00
Jeremy Stretch
31bb70d9a2
Fixed IPAM tests
2020-06-22 14:46:25 -04:00
Jeremy Stretch
2d4694e72d
Merge pull request #4770 from netbox-community/3703-limit-tag-creation
...
Closes #3703 : Restrict tag creation
2020-06-17 12:28:04 -04:00
Jeremy Stretch
448dc1442c
Replace TaggitSerializer and TagListSerializerField with TaggedObjectSerializer
2020-06-17 09:57:17 -04:00
Jeremy Stretch
e917535380
Merge branch 'develop' into develop-2.9
2020-06-15 16:04:32 -04:00
Jeremy Stretch
1f727f565f
Adopted fix from #4743 and updated API tests
2020-06-10 16:11:28 -04:00
Jeremy Stretch
9fd36279ab
Fixes #4743 : Allow users to create "next available" IPs without needing permission to create prefixes
2020-06-10 16:06:11 -04:00
Jeremy Stretch
ecd3963b7c
Merge pull request #4718 from netbox-community/4674-drf_yasg_definitions
...
Fixes #4674 - Fix available-ips and available-prefixes swagger definitions
2020-06-08 16:59:04 -04:00
Jeremy Stretch
e616aad911
Fixes #4725 : Fix "brief" rendering of various REST API endpoints
2020-06-05 15:49:06 -04:00
Daniel Sheppard
5330914431
#4674 - Correct many=False to many=True on the response serializers
2020-06-04 09:42:00 -05:00
Daniel Sheppard
927c012fc9
#4674 - Fix available-ips and available-prefixes swagger definitions
2020-06-04 09:35:58 -05:00
Jeremy Stretch
56f6698ba5
Fixes #4707 : Fix prefix_count population on VLAN API serializer
2020-06-02 13:40:14 -04:00
Jeremy Stretch
cc721efe97
Fixes #3356 : Correct Swagger schema specification for the available prefixes/IPs API endpoints
2020-04-21 14:12:49 -04:00
Jeremy Stretch
e0f819691f
Fixes #4496 : Fix exception when validating certain models via REST API
2020-04-15 09:37:30 -04:00
John Anderson
901143b72a
Merge branch 'develop' into develop-2.8
2020-03-16 12:17:00 -04:00
kobayashi
7ef9a6c0a7
Fixes #2769 : improve prefix_length validations
2020-03-16 03:20:15 -04:00
Jeremy Stretch
cebe580484
Add a description field to all organizational models
2020-03-13 16:33:28 -04:00
Jeremy Stretch
ea9de37dd1
Remove FieldChoicesViewSet
2020-03-12 10:48:17 -04:00
Matt Olenik
2e83ce76ed
Fix race condition in available-prefix/ip APIs
...
Implement advisory lock to prevent duplicate records being inserted
when making simultaneous calls. Fixes #2519
2020-02-11 13:36:52 -08:00
Jeremy Stretch
7388fa3556
Fixes #4083 : Permit nullifying applicable choice fields via API requests
2020-02-10 15:10:33 -05:00
Jeremy Stretch
a58bbccfd3
Fixes #4094 : Convert unnecessary regular expressions to strings in URL patterns
2020-02-05 16:12:48 -05:00
Jeremy Stretch
03087e9d01
Fixes #4049 : Restore missing tags field in IPAM service serializer
2020-01-29 16:22:06 -05:00
Jeremy Stretch
fdf8211e9a
Fixes #3930 : Fix API rendering of the family field for aggregates
2020-01-15 13:56:37 -05:00
Jeremy Stretch
49f027fae7
Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint
2020-01-15 09:59:44 -05:00
Jeremy Stretch
83c0d1ef44
Renamed ipam FilterSets
2020-01-09 20:37:26 -05:00
Jeremy Stretch
7845d9b25f
Add description field to Role model ( #3655 )
2019-12-10 12:59:10 -05:00
Jeremy Stretch
4ecbfc4e5e
Service.protocol to slug ( #3569 )
2019-11-27 22:27:06 -05:00
Jeremy Stretch
213bd1555a
VLAN.status to slug ( #3569 )
2019-11-27 22:15:59 -05:00
Jeremy Stretch
14a7a33cc2
IPAddress.role to slug ( #3569 )
2019-11-27 22:09:16 -05:00
Jeremy Stretch
ba8f324b12
IPAddress.status to slug ( #3569 )
2019-11-27 21:54:01 -05:00
Jeremy Stretch
929c0648d0
Prefix.status to slug ( #3569 )
2019-11-27 21:46:53 -05:00