Skip to content

Fixes #142: Renamed filters module to resolve collision with netbox-branching#143

Open
arcticash wants to merge 1 commit intoDanSheps:mainfrom
arcticash:filters-naming-collision
Open

Fixes #142: Renamed filters module to resolve collision with netbox-branching#143
arcticash wants to merge 1 commit intoDanSheps:mainfrom
arcticash:filters-naming-collision

Conversation

@arcticash
Copy link

@arcticash arcticash commented Mar 17, 2026

Renamed netbox_lifecycle/templatetags/filters.py to netbox_lifecycle_filters.py and updated all {% load filters %} references.

This PR Fixes issue #142

Root Cause

The plugin's templatetag module templatetags/filters.py conflicts with netbox-branching (Thanks to @cruse1977 for the pointer!) as both used utilities/templatetags/filters.py. The library from netbox-ranching is resolved first during {% load filters %}, meaning date_badge_class is never found.

Changes

  • Renamed netbox_lifecycle/templatetags/filters.py to netbox_lifecycle/templatetags/netbox_lifecycle_filters.py
  • Updated {% load filters %} to {% load netbox_lifecycle_filters %} in all affected templates
  • Updated import in tests/test_templatetags.py

Testing

Tested against NetBox 4.5.4 and 4.5.5 with netbox-lifecycle 1.1.8 and netbox-branching . Device detail pages now load correctly with lifecycle date badges rendering as expected.

netbox_lifecycle_filters.py and updated all {% load filters %}
references
@arcticash arcticash changed the title Fixes #142: Renamed filters module to resolve collision with netbox core module Fixes #142: Renamed filters module to resolve collision with netbox-branching Mar 18, 2026
@arcticash
Copy link
Author

Updated the PR description to reflect the actual root cause being netbox-branching plugin and not netbox core as originally suspected

@cruse1977
Copy link

Note - we are renaming this is in branching ; but for completeness, we should do both

@jsenecal
Copy link
Collaborator

Tests failures are not related to this change, otherwise, this looks good to me.

@jsenecal jsenecal requested a review from DanSheps March 19, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants