seros1521
90257e9dee
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
Jeremy Stretch
3436905744
Merge pull request #8771 from jasonyates/8770-documentation
...
Updating mkdocs to automatically adjust theme
2022-03-02 08:38:04 -05:00
Jason Yates
e3258bcf5a
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
2b6e0405a5
Closes #8736 : Add PC and UPC fiber end faces for LC/SC/LSH port types
2022-03-01 11:43:00 -05:00
jeremystretch
7f752d9102
Closes #8762 : Link to rack elevations list from site view
2022-03-01 11:32:17 -05:00
jeremystretch
df430394b0
Closes #8766 : Add SCTP to service protocols list
2022-03-01 11:07:19 -05:00
jeremystretch
1ab51ca04e
Announce 2022 community survey
2022-03-01 09:29:58 -05:00
jeremystretch
cb0386779c
Announce 2022 community survey
2022-03-01 09:17:24 -05:00
Emerson Pereira
28de330b50
Replace 'pluginfooter' block with 'footer' and 'footer_links' blocks
...
- 'footer' blocks represents the <footer> html tag
- 'footer_links' are the anchor tags inside nav
2022-02-26 01:13:11 -03:00
jeremystretch
06cb7f35f1
Update changelog
2022-02-25 13:26:02 -05:00
thatmattlove
796c5d785e
Fix navbar-toggler-icon visibility in dark mode
2022-02-25 11:23:14 -07:00
thatmattlove
c88db77814
Fixes #8633 : Recheck sidenav state on window resize
...
* Recheck sidenav state on window resize
* Remove `data-sidenav-pinned` attribute when hiding sidenav
* Remove `data-sidenav-hidden` attribute when showing sidenav
2022-02-25 11:23:14 -07:00
Jeremy Stretch
6fe0f4cd7d
Merge pull request #8741 from djothi/develop
...
Closes #8594 : Add description filter for all models with a description field
2022-02-25 13:18:40 -05:00
Jeremy Stretch
3bf90c3c38
Merge pull request #8735 from minitriga/issue_8629
...
Add description to tag table search function
2022-02-25 13:13:14 -05:00
Matt Love
992f3535b7
Merge pull request #8722 from stephanblanke/develop
...
Generalize scopeSelector js to allow easy reuse of existing layout configurations
2022-02-25 10:55:18 -07:00
Djothi Carpentier
06eacb5a5c
Add description filter to WirelessLAN & WirelessLink
2022-02-25 18:15:33 +01:00
Djothi Carpentier
c0152ce52f
Add description filter to VMInterface
2022-02-25 18:15:33 +01:00
Djothi Carpentier
5a60224d77
Add description filter for Token & ObjectPermission
2022-02-25 18:15:33 +01:00
Djothi Carpentier
c137fa2022
Add description filter for Tenant & ContactRole
2022-02-25 18:15:33 +01:00
Djothi Carpentier
879d01a750
Add description filter for VRF, RouteTarget, Aggregate, ASN, Role, Prefix, IPRange, VLAN & Service
2022-02-25 18:15:33 +01:00
Djothi Carpentier
6db878743c
Add description filter for CustomField, ExportTemplate & Tag
2022-02-25 18:15:33 +01:00
Djothi Carpentier
08b90090f5
Add description filter for Site, RackRole, RackReservation & DeviceRole
2022-02-25 18:15:33 +01:00
Djothi Carpentier
42466d5fc4
Add description filter for ProviderNetwork, CircuitType, Circuit & CircuitTermination
2022-02-25 18:15:22 +01:00
Alex Gittings
36d6dd1ca9
Fixes #8645 ; Allow filtering on core models in the UI and API for contact assignments
2022-02-24 17:08:38 +00:00
Alex Gittings
4863591bc8
Fixes #8629 ; Add description to tag table search function
2022-02-24 10:02:21 +00:00
Emerson Pereira
c489501441
Add {% block pluginfooter %} to 'base/layout.html' template
...
Makes it easy to insert footer information into Netbox footer.
2022-02-24 00:38:11 -03:00
Stephan Blanke
1a7438acfd
Fixed code comments
2022-02-22 23:32:34 +01:00
Stephan Blanke
b1de85a44f
Fixes #8710 : Show/hide form elements based on scope selection
2022-02-22 23:27:11 +01:00
jeremystretch
4913d7ee39
Fixes #8713 : Restore missing "add" button on services list view
2022-02-22 09:05:31 -05:00
jeremystretch
2503a3e3ca
Fixes #8717 : Fix redirection after bulk edit/delete of prefixes from aggregate view
2022-02-22 09:02:31 -05:00
Johannes Erwerle
538984c6d2
Fixes 8553: Fix Provider network, ASN, and contact options missings from global search selector
2022-02-21 12:26:12 +01:00
jeremystretch
90ee689d5a
Closes #8678 : Validate minimum required Python version
2022-02-17 10:31:28 -05:00
jeremystretch
b343035060
Fixes #8674 : Fix rendering of tabbed content in documentation
2022-02-16 16:21:32 -05:00
Daniel Sheppard
6bbf168cec
Fixes #8546 - Fix import to restrict bridge, parent, lag to device interfaces
2022-02-15 09:27:55 -06:00
jeremystretch
b5e4fdc3d8
PRVB
2022-02-15 09:32:52 -05:00
Jeremy Stretch
90f91eeea4
Merge pull request #8640 from netbox-community/develop
...
Release v3.1.8
2022-02-15 09:31:00 -05:00
jeremystretch
ae0ae5fd4e
Remove outdated installation video
2022-02-15 09:20:19 -05:00
jeremystretch
5b7486cff8
Release v3.1.8
2022-02-15 09:01:58 -05:00
jeremystretch
14240318f1
Fixes #8609 : Display validation error when attempting to assign VLANs to interface with no mode during bulk edit
2022-02-15 08:39:45 -05:00
jeremystretch
18eb9ffae6
Changelog for #8391
2022-02-14 10:34:30 -05:00
Jeremy Stretch
c0a62793c4
Merge pull request #8441 from seulsale/8391-install-date-null
...
Fixes #8391 : Install date should appear empty when exported
2022-02-14 10:32:56 -05:00
jeremystretch
dd848d754f
Changelog & cleanup for #8556
2022-02-14 10:06:56 -05:00
Jeremy Stretch
f058850598
Merge pull request #8581 from mathieu-mp/8556-add-full-name-to-change-log-tables
...
Closes #8556 : Add 'Full Name' column to Change Log table
2022-02-14 09:49:36 -05:00
Jeremy Stretch
0c7220016b
Merge pull request #8621 from JonathonReinhart/nbshell-tab-complete
...
Enable tab completion in nbshell
2022-02-14 09:27:35 -05:00
jeremystretch
8c19124717
Fixes #8622 : Correct help text of status field on VM import form
2022-02-14 08:54:36 -05:00
Mathieu PAYROL
46f4359e1f
Closes #8556 : Add 'Full Name' column to Change Log table
2022-02-14 09:07:57 +01:00
Sergio Saucedo
f80452c7d9
Update import order
2022-02-14 00:47:48 -06:00
Sergio Saucedo
611f1b57dd
Implement custom DateTimeColumn improving null values handling
2022-02-14 00:44:50 -06:00
Jonathon Reinhart
d1b1a45725
Enable tab completion in nbshell
2022-02-13 03:00:57 -05:00
jeremystretch
6e38f7e532
Changelog for #8577
2022-02-11 16:00:01 -05:00