Resolve deprecation warnings #10868

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

Originally created by @jeremystretch on GitHub (Mar 10, 2025).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Address and resolve the following warnings logged on initialization:

netbox/extras/dashboard/widgets.py:286: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
  feed_url = forms.URLField(

venv/lib/python3.10/site-packages/strawberry/types/fields/resolver.py:232: DeprecationWarning: Argument name-based matching of 'info' is deprecated and will be removed in v1.0. Ensure that reserved arguments are annotated their respective types (i.e. use value: 'DirectiveValue[str]' instead of 'value: str' and 'info: Info' instead of a plain 'info').
  return {spec: spec.find(parameters, self) for spec in self.RESERVED_PARAMSPEC}

venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1142: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
  return form_class(**defaults)

netbox/tenancy/forms/bulk_edit.py:117: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
  link = forms.URLField(

netbox/circuits/tables/circuits.py:111: DeprecationWarning: Use '__' to separate path components, not '.' in accessor 'circuit.provider' (fallback will be removed in django_tables2 version 3).
  provider = tables.Column(

venv/lib/python3.10/site-packages/rest_framework/urlpatterns.py:108: RemovedInDjango60Warning: Converter 'drf_format_suffix' is already registered. Support for overriding registered converters is deprecated and will be removed in Django 6.0.
  register_converter(suffix_converter, converter_name)

Justification

These warning indicate that corrective action is needed prior to an upcoming breaking change.

Originally created by @jeremystretch on GitHub (Mar 10, 2025). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Address and resolve the following warnings logged on initialization: ``` netbox/extras/dashboard/widgets.py:286: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme. feed_url = forms.URLField( venv/lib/python3.10/site-packages/strawberry/types/fields/resolver.py:232: DeprecationWarning: Argument name-based matching of 'info' is deprecated and will be removed in v1.0. Ensure that reserved arguments are annotated their respective types (i.e. use value: 'DirectiveValue[str]' instead of 'value: str' and 'info: Info' instead of a plain 'info'). return {spec: spec.find(parameters, self) for spec in self.RESERVED_PARAMSPEC} venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1142: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme. return form_class(**defaults) netbox/tenancy/forms/bulk_edit.py:117: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme. link = forms.URLField( netbox/circuits/tables/circuits.py:111: DeprecationWarning: Use '__' to separate path components, not '.' in accessor 'circuit.provider' (fallback will be removed in django_tables2 version 3). provider = tables.Column( venv/lib/python3.10/site-packages/rest_framework/urlpatterns.py:108: RemovedInDjango60Warning: Converter 'drf_format_suffix' is already registered. Support for overriding registered converters is deprecated and will be removed in Django 6.0. register_converter(suffix_converter, converter_name) ``` ### Justification These warning indicate that corrective action is needed prior to an upcoming breaking change.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:36:58 +01:00
adam closed this issue 2025-12-29 21:36:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10868