nautobot-app-circuit-maintenance
nautobot-app-circuit-maintenance copied to clipboard
Deprecated class warnings when starting Nautobot
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
- Install plugins
- Run the
post_upgrade
command.