Commit Graph

9592 Commits

Author SHA1 Message Date
jeremystretch
ccaedf2689 Simplify add/import/export button invocation 2022-03-10 15:56:09 -05:00
jeremystretch
23e1cb9c59 Add tags field to NetBoxModelForm 2022-03-10 15:08:23 -05:00
jeremystretch
272f4799bc Release v3.2.0-beta2 2022-03-09 12:56:20 -05:00
Alex Gittings
3abcf47b62 fix pycodestyle issues 2022-03-09 17:55:45 +00:00
Alex Gittings
da990d5db7 add contacts to site table 2022-03-09 17:49:02 +00:00
Alex Gittings
42819d0a7d merge develop into issue 2022-03-09 17:47:58 +00:00
Alex Gittings
7b102f199b add columns for each model table that has contacts 2022-03-09 17:35:25 +00:00
Jeremy Stretch
139054492e Merge pull request #8833 from netbox-community/8823-api-serializers
Closes #8823: Add plugin support for REST API components
2022-03-09 12:31:01 -05:00
jeremystretch
c5579e4de8 Document support for NetBoxModelSerializer, NetBoxModelViewSet 2022-03-09 11:52:14 -05:00
Alex Gittings
d080f80e29 acidentally removed NestedContactAssignmentSerializer in previous commit 2022-03-09 16:48:29 +00:00
Alex Gittings
fd1430b2d8 remove contacts from api endpoints 2022-03-09 16:45:19 +00:00
jeremystretch
d9993c5b76 Move CustomFieldModelViewSet functionality into NetBoxModelViewSet 2022-03-09 11:44:55 -05:00
Alex Gittings
7e5e7dd4a7 Merge branch 'issue_8645' of https://github.com/minitriga/netbox into issue_8645 2022-03-09 16:36:16 +00:00
Alex Gittings
2f787cb3eb Fixes #8645; Allow filtering on core models in the UI 2022-03-09 16:35:47 +00:00
jeremystretch
b0621f7fca Refactor API views 2022-03-09 11:27:42 -05:00
jeremystretch
c813f56a27 Refactor API serializers 2022-03-09 10:59:22 -05:00
thatmattlove
4dcd94157e Fixes #8820: correct navbar color in dark mode 2022-03-08 14:28:52 -07:00
jeremystretch
454e6c9675 Revise plugins documentation 2022-03-08 15:44:35 -05:00
jeremystretch
1848b99b74 Clean up form select widgets 2022-03-07 15:11:57 -05:00
jeremystretch
407b53aaeb Closes #8804: Include module type count on manufacturer view 2022-03-07 13:44:27 -05:00
jeremystretch
bde87a4f4c Fixes #8810: Enable filtering modules by type 2022-03-07 13:40:49 -05:00
jeremystretch
1714f0c717 Fixes #8815: Fix display of custom object fields in table columns 2022-03-07 13:30:52 -05:00
jeremystretch
7573dde28f Merge v3.1.9 2022-03-07 10:55:30 -05:00
jeremystretch
dcd61001a7 Merge branch 'master' into develop 2022-03-07 10:49:06 -05:00
Jeremy Stretch
c7caf6949c Merge pull request #8818 from netbox-community/fix-tzdata
Add tzdata dependency
2022-03-07 10:48:12 -05:00
jeremystretch
843a8616da Add tzdata dependency 2022-03-07 10:38:05 -05:00
jeremystretch
4fbf72263f PRVB 2022-03-07 10:07:07 -05:00
Jeremy Stretch
28de19ff28 Merge pull request #8814 from netbox-community/develop
Release v3.1.9
2022-03-07 09:59:16 -05:00
jeremystretch
c79129edac Release v3.1.9 2022-03-07 09:47:31 -05:00
Jeremy Stretch
576e4fc5cf Merge pull request #8793 from seros1521/fix_8715
Fixes #8715: eliminates duplicates when used in many-to-many field constraints
2022-03-07 09:27:14 -05:00
jeremystretch
5d611e34ef Fixes #8807: Correct REST API URL for FHRP group assignments 2022-03-07 09:02:47 -05:00
jeremystretch
d489531c67 Fixes #8808: Fix members count under FHRP group list 2022-03-07 09:00:00 -05:00
jeremystretch
e0f8e587a9 Clean up search results layout 2022-03-07 08:50:58 -05:00
Jeremy Stretch
c46d0d5d6b Merge pull request #8734 from emersonfelipesp/add_pluginfooter_block
Closes #8733: Add {% block pluginfooter %} to 'base/layout.html' template
2022-03-04 16:07:54 -05:00
jeremystretch
2c657af4b1 Fixes #8724: Fix exception during device import with invalid device type 2022-03-04 13:45:59 -05:00
jeremystretch
34274ba413 Closes #8758: Allow empty string substitution when renaming objects in bulk 2022-03-04 13:30:32 -05:00
jeremystretch
50be59f05a Closes #8664: Show assigned ASNs/sites under list views 2022-03-04 13:20:17 -05:00
seros1521
e7bd99028e Fixes #8715: eliminates duplicates when used in many-to-many field constraints
When using permissions that use tags, a user may receive multiple permissions
of the same type if multiple tags are assigned to the device. This causes the
RestrictedQuerySet class to generate a query similar to this:

>>> dcim.models.Device.objects.filter(Q(tags__name='tag1')|Q(tags__name='tag2'))
<ConfigContextModelQuerySet [<Device: device1>, <Device: device1>]>

This query returns the same object twice if both tags are assigned to it. This
is due to the use of the django-taggit library. The library's documentation
describes this behavior as expected and suggests using an explicit distinct()
call in queries to avoid duplicates.

However, the use of DISTINCT in queries has a global side effect -
deduplication of responses, which may or may not be acceptable behavior
(depending on further use). Since it is not known how RestrictedQuerySet will
be used in the rest of the code, it was decided to dedupe using a subquery.
2022-03-04 14:37:05 +07:00
jeremystretch
2b8428dfc8 Fixes #8792: Fix creation of circuit terminations via UI 2022-03-03 16:42:48 -05:00
jeremystretch
710ae0243d Fixes #7891: Fix display of form validation failures during device component creation 2022-03-03 16:18:24 -05:00
jeremystretch
66736d8d14 Refactor tables modules 2022-03-03 15:16:23 -05:00
jeremystretch
5f5a193b8a #8787: Fix toggling of PK table column 2022-03-03 14:09:32 -05:00
jeremystretch
138da04cca Fixes #8763: Fix inventory item component assignment 2022-03-03 11:52:36 -05:00
jeremystretch
7104e1f197 Closes #8765: Display and enable bulk clearing of user's table preferences 2022-03-03 10:03:43 -05:00
jeremystretch
b187cbb6dc Hide table checkboxes when no bulk actions are enabled 2022-03-02 16:13:59 -05:00
jeremystretch
89f4d1c59f Support the direct use of TagFilter 2022-03-02 12:06:07 -05:00
jeremystretch
1402a9097b Closes #8779: Enable the use of ChoiceSet by plugins 2022-03-02 11:43:28 -05:00
Jeremy Stretch
299b3d99b4 Merge pull request #8771 from jasonyates/8770-documentation
Updating mkdocs to automatically adjust theme
2022-03-02 08:38:04 -05:00
Jason Yates
9c96654008 Updating mkdocs to automatically adjust theme
Automatically adjusts documentation theme between default/slate based on users preference for dark mode.
2022-03-02 08:45:22 +00:00
jeremystretch
824c0ac344 Closes #8736: Add PC and UPC fiber end faces for LC/SC/LSH port types 2022-03-01 11:43:00 -05:00