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. |
||
|---|---|---|
| .. | ||
| 0001_squashed_0008.py | ||
| 0009_wirelesslink_distance.py | ||
| 0010_charfield_null_choices.py | ||
| 0011_wirelesslan__location_wirelesslan__region_and_more.py | ||
| 0012_alter_wirelesslan__location_and_more.py | ||
| 0013_natural_ordering.py | ||
| 0014_wirelesslangroup_comments.py | ||
| 0015_extend_wireless_link_abs_distance_upper_limit.py | ||
| 0016_owner.py | ||
| 0017_gfk_indexes.py | ||
| 0018_add_mptt_tree_indexes.py | ||
| 0019_default_ordering_indexes.py | ||
| 0020_alter_wirelesslan__region_and_more.py | ||
| __init__.py | ||