netbox/netbox/wireless/migrations
bctiemann 0eb1fcc09c
Closes #22682: Fix CachedScopeMixin cache fields cascading on ancestor deletion (#22693)
CachedScopeMixin._region and ._site_group may cache ancestors of a
Site or Location scope. Change these relationships to SET_NULL so
deleting a Region or SiteGroup clears the cached value instead of
deleting the scoped Prefix, Cluster, or WirelessLAN.

Add reverse GenericRelation fields for Cluster and WirelessLAN on
Region and SiteGroup. This preserves the expected cascade when a
Region or SiteGroup is itself the direct scope, matching the existing
Prefix behavior.

Add migrations recording the ORM-level on_delete changes and regression
coverage for Site, Location, and direct Region/SiteGroup scopes.
2026-07-18 10:35:08 +02:00
..
0001_squashed_0008.py Closes #17166: Remove obsolete limit_choices_to argument from ForeignKey & M2M fields 2025-04-03 09:17:20 -04:00
0009_wirelesslink_distance.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0010_charfield_null_choices.py Fixes #19440: Ensure data migrations use the correct database connection 2025-05-08 14:53:52 -04:00
0011_wirelesslan__location_wirelesslan__region_and_more.py Closes #17166: Remove obsolete limit_choices_to argument from ForeignKey & M2M fields 2025-04-03 09:17:20 -04:00
0012_alter_wirelesslan__location_and_more.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0013_natural_ordering.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0014_wirelesslangroup_comments.py Removes banner from new migrations 2025-03-13 15:43:32 -05:00
0015_extend_wireless_link_abs_distance_upper_limit.py Fixes #19415: Increased Circuit/WirelessLink distance upper limit (#19495) 2025-05-19 08:38:30 -04:00
0016_owner.py Closes #20304: Object owners (#20634) 2025-10-24 13:08:01 -07:00
0017_gfk_indexes.py Closes #20954: Add indexes for GFKs (#21015) 2025-12-18 14:49:00 -08:00
0018_add_mptt_tree_indexes.py Closes #21016: Add missing MPTT tree indexes (#21432) 2026-02-13 17:00:04 +01:00
0019_default_ordering_indexes.py Merge branch 'main' into feature 2026-04-10 14:58:07 -04:00
0020_alter_wirelesslan__region_and_more.py Closes #22682: Fix CachedScopeMixin cache fields cascading on ancestor deletion (#22693) 2026-07-18 10:35:08 +02:00
__init__.py Introduce the wireless app and SSID model 2021-10-12 12:48:36 -04:00