12118 Commits

Author SHA1 Message Date
github-actions
30f9d3ed60 Update source translation strings 2026-05-06 05:59:55 +00:00
Jeremy Stretch
00791344e6 Release v4.6.0 2026-05-05 08:55:05 -04:00
Jeremy Stretch
28a5c7d882 Merge branch 'main' into feature 2026-05-04 13:02:42 -04:00
Jeremy Stretch
b78bd71329 Release v4.5.10 2026-05-04 12:48:34 -04:00
Martin Hauser
05dcf02dbe fix(dcim): Mark cable_end as nullable in CabledObject Serializer
Use DRF's ChoiceField for `cable_end` to preserve the existing raw
"A"/"B" API output while documenting the allowed values and nullability
in the generated schema.

Fixes #22084
2026-05-04 11:51:25 -04:00
Arthur Hanson
364953edc5 Closes #22034: Fix rack group migration from very old netbox installation (#22063)
* #22034 fix rack group migation from very old netbox installation

* #22034 fix rack group migation from very old netbox installation

* #22034 fix rack group migation from very old netbox installation

* fix after loading old database

* simplify

* fix index name
2026-05-01 14:38:59 -04:00
Jeremy Stretch
8830519da2 Closes #22062: Display API token ID & plaintext one time immediately upon creation (#22064) 2026-05-01 16:04:35 +02:00
Jeremy Stretch
92c5aff713 Closes #22048: Deprecate expand_ipaddress_pattern() (#22051) 2026-04-30 16:50:12 +02:00
Jeremy Stretch
1452d57f38 Closes #22047: Deprecate ExpandableIPAddressField (#22050) 2026-04-30 16:49:39 +02:00
Jeremy Stretch
a1c529ddbf Closes #22046: Deprecate OptionalLimitOffsetPagination (#22049) 2026-04-30 16:49:09 +02:00
github-actions
fe80048374 Update source translation strings 2026-04-30 06:00:05 +00:00
Jeremy Stretch
baa2ff3ade Fixes #22029: Recast empty string values on unique nullable fields as null (#22035) 2026-04-29 15:36:25 -05:00
Martin Hauser
d01454c753 fix(ipam): Omit None values from AddObject URL parameters
Update AddObject.get_url() to skip parameters that resolve to None,
preventing invalid query strings.
Adjust VLAN-to-Prefix action to use scope_type/scope instead of site
field.

Fixes #22031
2026-04-29 15:03:52 +02:00
github-actions
385767c41f Update source translation strings 2026-04-29 05:58:57 +00:00
Martin Hauser
7eb66c185b fix(dcim): Require complete cable paths for connected filter (#22022)
Update InterfaceFilterSet to check both is_active and is_complete when
filtering by connected=true. Incomplete pass-through paths (e.g. cabled
front ports without rear port connections) are now correctly excluded.

Fixes regression where active but incomplete cable paths were incorrectly
returned as connected.

Fixes #22005
2026-04-28 11:20:02 -07:00
bctiemann
6a675d7fa7 Merge pull request #22015 from netbox-community/21990-device
#21990 fix deletion of device from Virtual Machines
2026-04-28 13:02:56 -04:00
Jeremy Stretch
da2d19c932 Release v4.6.0-beta2 2026-04-28 10:56:59 -04:00
Jeremy Stretch
3ccf4e2d14 Merge branch 'main' into feature 2026-04-28 10:19:36 -04:00
Jeremy Stretch
8fbb6f74d3 Release v4.5.9 (#22024) 2026-04-28 09:45:20 -04:00
github-actions
1fd241995f Update source translation strings 2026-04-28 05:59:53 +00:00
Martin Hauser
fa2d762f2b Fixes #22002: Enable horizontal scrolling for Context Table Panels (#22009) 2026-04-27 16:40:50 -05:00
Arthur Hanson
55b48149c7 Fixes #21995: Don't copy unique fields when adding another Contact (#22017) 2026-04-27 22:28:03 +02:00
Arthur
be86c50204 cleanup 2026-04-27 11:06:03 -07:00
Arthur
e54e70c735 #21990 fix deletion of device from Virtual Machines 2026-04-27 10:48:45 -07:00
Martin Hauser
d413b847ab fix(extras): Validate EventRule action_data is a dict or null
Add validation in EventRule.clean() to ensure action_data is a JSON
object or null. Add runtime guard in event processing to handle legacy
rows with invalid data by logging a warning and using an empty dict.

Fixes #21989
2026-04-27 12:01:49 -04:00
Martin Hauser
aa14e1d322 fix(dcim): Resolve link peers for cable profile connectors
Add `_get_profile_link_peers()` method to handle connector-to-connector
mappings when cables use profiles. Includes regression test for
TRUNK_4C1P profile ensuring correct peer resolution between interfaces
and rear ports.

Fixes #21917
2026-04-27 12:00:03 -04:00
Jeremy Stretch
c3c26332ad Fixes #21949: Fix recursive power utilization calculation (#21997) 2026-04-27 14:35:45 +02:00
Martin Hauser
5f802bb18f Closes #19648: Add support for colored Custom Field Choice Set values (#21984)
Fixes #19648
2026-04-24 12:37:32 -05:00
github-actions
2fd6924d26 Update source translation strings 2026-04-24 05:46:33 +00:00
Jeremy Stretch
0563cc4585 Closes #21788: Return CSV export as a streaming response (#21974) 2026-04-23 09:45:15 -07:00
Martin Hauser
b1a810164a fix(dcim): Add color field to FrontPort form
Include the color field in FrontPortForm and commented-out
FrontPortBulkCreateForm field lists to allow editing front port colors
via the UI.

Fixes #21985
2026-04-23 12:09:23 -04:00
Jeremy Stretch
df02abbbdf Merge branch 'main' into feature 2026-04-23 11:10:58 -04:00
Artem Kotik
7941303d4b Closes #21854: Support multi-select object filters in Filter Forms (#21981)
Use `DynamicModelMultipleChoiceField` for `TYPE_OBJECT` in FilterSet forms
so users can select multiple related objects when filtering.
2026-04-23 13:53:39 +02:00
github-actions
e0abfaea63 Update source translation strings 2026-04-23 05:43:53 +00:00
Martin Hauser
c71635510c feat(account): Add sticky bulk actions to account templates (#21987)
Convert bookmarks, notifications, and subscriptions templates to use
the new sticky-actions component with data-driven positioning. Wraps
bulk delete buttons in sticky-actions card for consistent UX.
2026-04-22 22:30:59 +02:00
Jeremy Stretch
789085cc33 Fixes #21975: Prefetch all related data during CSV bulk export (#21976) 2026-04-22 08:56:30 -07:00
github-actions
81d412541c Update source translation strings 2026-04-22 05:41:13 +00:00
bctiemann
e14f27ec83 Merge pull request #21969 from netbox-community/21924-improve-styling-and-consistency-of-floating-bulk-actions
Closes #21924: Refactor sticky bulk actions and form bars
2026-04-21 13:25:50 -04:00
bctiemann
6a9c3dad17 Merge pull request #21932 from netbox-community/21782-config
21782 Enable optional config template override in URL
2026-04-21 13:24:10 -04:00
Martin Hauser
4260280452 test(ipam): Make AnnotatedIPAddressTable checkbox test deterministic
Replace whole-table HTML string counting in AnnotatedIPAddressTableTest
`test_ipaddress_has_checkbox_iprange_does_not` with row-specific `pk`
cell assertions.

This avoids false failures when an `IPAddress` and `IPRange` happen to
share the same numeric primary key and makes the test stable in CI.

Fixes #21971
2026-04-21 08:15:30 -04:00
github-actions
c62d0e8579 Update source translation strings 2026-04-21 05:41:44 +00:00
Martin Hauser
409d4a8958 Fixes #21966: Fix OpenAPI schema for available-vlans endpoint request body (#21973) 2026-04-20 14:11:47 -05:00
Martin Hauser
5c6787756c feat(virtualization): use native unique constraint for VirtualMachineType slug (#21970)
Replace the UniqueConstraint on the slug field with the native
`unique=True` parameter on SlugField in both the model definition and
migration. This resolves a compatibility issue with netbox_branching,
which does not handle a SlugField combined with a separate
UniqueConstraint on the same field.
2026-04-20 10:42:32 -07:00
Jeremy Stretch
29ae9f400a Fixes #21906: Return a 404 for REST API writes to endpoints with no trailing slash (#21967) 2026-04-20 10:32:47 -07:00
Jeremy Stretch
1f9ed248bd Closes #21929: Eliminate redundant object view templates (#21930) 2026-04-20 09:38:41 -07:00
Jeremy Stretch
b68b0c6d78 Closes #21751: Enable toggling user notifications when executing custom scripts (#21923) 2026-04-20 09:32:41 -07:00
Arthur Hanson
900f1155af Closes #21866: Include the PostgreSQL database schema within System details (#21901)
Expose the current PostgreSQL schema from the system view and include it
in the exported system data.

Load the Database tab on demand with HTMX so schema introspection only
runs when the panel is opened, while keeping the export path eager.
Use the active PostgreSQL schema instead of assuming `public`, move the
schema helpers into `core.utils`, and tidy the accordion toggle styling.
2026-04-20 18:18:10 +02:00
Martin Hauser
313b311962 feat(ui): Refactor sticky bulk actions and form bars
Replace ad-hoc btn-float-group classes with a data-attribute-driven
sticky-actions system. Selection-driven bars use JS-toggled
`.is-sticky-active`; always-visible bars are pure CSS. Remove
obsolete `.btn-float` class usage from footer templates.

Fixes #21924
2026-04-20 17:41:29 +02:00
Ibtissam
a372f78a9e Fixes #21658: Fix OpenAPI schema for available-prefixes endpoint request body (#21956) 2026-04-20 08:46:41 -05:00
github-actions
74dab1fba0 Update source translation strings 2026-04-18 05:30:57 +00:00