nautobot-app-circuit-maintenance icon indicating copy to clipboard operation
nautobot-app-circuit-maintenance copied to clipboard

Deprecated class warnings when starting Nautobot

Open ubajze opened this issue 1 year ago • 3 comments

Environment

  • Python version: 3.9
  • Nautobot version: 1.4.5
  • nautobot-circuit-maintenance version: 0.6.0

Expected Behavior

No warnings.

Observed Behavior

When I start Nautobot and run the post_upgrade command I can see a lot of warning messages saying class XYZ is deprecated.

06:21:09 WARNING Class CustomFieldModelForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving CircuitImpactForm from CustomFieldModelForm, please migrate your code to inherit from class CustomFieldModelFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:34
06:21:09 WARNING Class AddRemoveTagsForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving CircuitImpactBulkEditForm from AddRemoveTagsForm, please migrate your code to inherit from class TagsBulkEditFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:53
06:21:09 WARNING Class CustomFieldModelForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving CircuitMaintenanceForm from CustomFieldModelForm, please migrate your code to inherit from class CustomFieldModelFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:62
06:21:09 WARNING Class CustomFieldFilterForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving CircuitMaintenanceFilterForm from CustomFieldFilterForm, please migrate your code to inherit from class CustomFieldModelFilterFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:73
06:21:09 WARNING Class AddRemoveTagsForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving CircuitMaintenanceBulkEditForm from AddRemoveTagsForm, please migrate your code to inherit from class TagsBulkEditFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:104
06:21:09 WARNING Class CustomFieldModelForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving NoteForm from CustomFieldModelForm, please migrate your code to inherit from class CustomFieldModelFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:116
06:21:09 WARNING Class AddRemoveTagsForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving NoteBulkEditForm from AddRemoveTagsForm, please migrate your code to inherit from class TagsBulkEditFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:127
06:21:09 WARNING Class CustomFieldFilterForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving RawNotificationFilterSetForm from CustomFieldFilterForm, please migrate your code to inherit from class CustomFieldModelFilterFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:147
06:21:09 WARNING Class AddRemoveTagsForm is deprecated, and will be removed in a future Nautobot release. Instead of deriving NotificationSourceBulkEditForm from AddRemoveTagsForm, please migrate your code to inherit from class TagsBulkEditFormMixin instead. - nautobot.utilities.deprecation - forms - /usr/local/lib/python3.9/site-packages/nautobot_circuit_maintenance/forms.py:180

I think this happens for all Nautobot 1.4.x versions.

Steps to Reproduce

  1. Install plugins
  2. Run the post_upgrade command.

ubajze avatar Oct 06 '22 06:10 ubajze