Resolve deprecation warnings from strawberry-django #11177

Closed
opened 2025-12-29 21:41:24 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (May 14, 2025).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

When starting NetBox, strawberry-django now logs a particular deprecation warning many times:

DeprecationWarning: `filter` is deprecated, use `filter_type` instead.
  @strawberry_django.filter(models.JournalEntry, lookups=True)

The filter function was renamed to filter_type in v0.59.

Justification

Updates references to deprecated third-party code.

Originally created by @jeremystretch on GitHub (May 14, 2025). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes When starting NetBox, strawberry-django now logs a particular deprecation warning many times: ``` DeprecationWarning: `filter` is deprecated, use `filter_type` instead. @strawberry_django.filter(models.JournalEntry, lookups=True) ``` The `filter` function was renamed to `filter_type` in [v0.59](https://github.com/strawberry-graphql/strawberry-django/releases/tag/v0.59.0). ### Justification Updates references to deprecated third-party code.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:41:24 +01:00
adam closed this issue 2025-12-29 21:41:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11177