Kaynağa Gözat

Adjust TODO release targets

Jeremy Stretch 6 ay önce
ebeveyn
işleme
32ea174331

+ 4 - 4
netbox/extras/scripts.py

@@ -588,9 +588,9 @@ class BaseScript:
         """
         Return data from a YAML file
         """
-        # TODO: DEPRECATED: Remove this method in v4.4
+        # TODO: DEPRECATED: Remove this method in v4.5
         self._log(
-            _("load_yaml is deprecated and will be removed in v4.4"),
+            _("load_yaml is deprecated and will be removed in v4.5"),
             level=LogLevelChoices.LOG_WARNING
         )
         file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
@@ -603,9 +603,9 @@ class BaseScript:
         """
         Return data from a JSON file
         """
-        # TODO: DEPRECATED: Remove this method in v4.4
+        # TODO: DEPRECATED: Remove this method in v4.5
         self._log(
-            _("load_json is deprecated and will be removed in v4.4"),
+            _("load_json is deprecated and will be removed in v4.5"),
             level=LogLevelChoices.LOG_WARNING
         )
         file_path = os.path.join(settings.SCRIPTS_ROOT, filename)

+ 1 - 1
netbox/netbox/constants.py

@@ -44,7 +44,7 @@ ADVISORY_LOCK_KEYS = {
     'job-schedules': 110100,
 }
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.5
 # Legacy default view action permission mapping
 DEFAULT_ACTION_PERMISSIONS = {
     'add': {'add'},

+ 9 - 9
netbox/utilities/templatetags/buttons.py

@@ -107,7 +107,7 @@ def subscribe_button(context, instance):
 # Legacy object buttons
 #
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/clone.html')
 def clone_button(instance):
     # Resolve URL path
@@ -125,7 +125,7 @@ def clone_button(instance):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/edit.html')
 def edit_button(instance):
     url = get_action_url(instance, action='edit', kwargs={'pk': instance.pk})
@@ -136,7 +136,7 @@ def edit_button(instance):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/delete.html')
 def delete_button(instance):
     url = get_action_url(instance, action='delete', kwargs={'pk': instance.pk})
@@ -147,7 +147,7 @@ def delete_button(instance):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/sync.html')
 def sync_button(instance):
     url = get_action_url(instance, action='sync', kwargs={'pk': instance.pk})
@@ -162,7 +162,7 @@ def sync_button(instance):
 # Legacy list buttons
 #
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/add.html')
 def add_button(model, action='add'):
     try:
@@ -176,7 +176,7 @@ def add_button(model, action='add'):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/import.html')
 def import_button(model, action='bulk_import'):
     try:
@@ -190,7 +190,7 @@ def import_button(model, action='bulk_import'):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/export.html', takes_context=True)
 def export_button(context, model):
     object_type = ObjectType.objects.get_for_model(model)
@@ -212,7 +212,7 @@ def export_button(context, model):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/bulk_edit.html', takes_context=True)
 def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
     try:
@@ -229,7 +229,7 @@ def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
     }
 
 
-# TODO: Remove in NetBox v4.6
+# TODO: Remove in NetBox v4.7
 @register.inclusion_tag('buttons/bulk_delete.html', takes_context=True)
 def bulk_delete_button(context, model, action='bulk_delete', query_params=None):
     try: