mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Adjust TODO release targets
This commit is contained in:
parent
3f475e0b8d
commit
e7a14e0902
@ -588,9 +588,9 @@ class BaseScript:
|
|||||||
"""
|
"""
|
||||||
Return data from a YAML file
|
Return data from a YAML file
|
||||||
"""
|
"""
|
||||||
# TODO: DEPRECATED: Remove this method in v4.4
|
# TODO: DEPRECATED: Remove this method in v4.5
|
||||||
self._log(
|
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
|
level=LogLevelChoices.LOG_WARNING
|
||||||
)
|
)
|
||||||
file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
|
file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
|
||||||
@ -603,9 +603,9 @@ class BaseScript:
|
|||||||
"""
|
"""
|
||||||
Return data from a JSON file
|
Return data from a JSON file
|
||||||
"""
|
"""
|
||||||
# TODO: DEPRECATED: Remove this method in v4.4
|
# TODO: DEPRECATED: Remove this method in v4.5
|
||||||
self._log(
|
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
|
level=LogLevelChoices.LOG_WARNING
|
||||||
)
|
)
|
||||||
file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
|
file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
|
||||||
|
@ -44,7 +44,7 @@ ADVISORY_LOCK_KEYS = {
|
|||||||
'job-schedules': 110100,
|
'job-schedules': 110100,
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Remove in NetBox v4.6
|
# TODO: Remove in NetBox v4.5
|
||||||
# Legacy default view action permission mapping
|
# Legacy default view action permission mapping
|
||||||
DEFAULT_ACTION_PERMISSIONS = {
|
DEFAULT_ACTION_PERMISSIONS = {
|
||||||
'add': {'add'},
|
'add': {'add'},
|
||||||
|
@ -107,7 +107,7 @@ def subscribe_button(context, instance):
|
|||||||
# Legacy object buttons
|
# Legacy object buttons
|
||||||
#
|
#
|
||||||
|
|
||||||
# TODO: Remove in NetBox v4.6
|
# TODO: Remove in NetBox v4.7
|
||||||
@register.inclusion_tag('buttons/clone.html')
|
@register.inclusion_tag('buttons/clone.html')
|
||||||
def clone_button(instance):
|
def clone_button(instance):
|
||||||
# Resolve URL path
|
# 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')
|
@register.inclusion_tag('buttons/edit.html')
|
||||||
def edit_button(instance):
|
def edit_button(instance):
|
||||||
url = get_action_url(instance, action='edit', kwargs={'pk': instance.pk})
|
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')
|
@register.inclusion_tag('buttons/delete.html')
|
||||||
def delete_button(instance):
|
def delete_button(instance):
|
||||||
url = get_action_url(instance, action='delete', kwargs={'pk': instance.pk})
|
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')
|
@register.inclusion_tag('buttons/sync.html')
|
||||||
def sync_button(instance):
|
def sync_button(instance):
|
||||||
url = get_action_url(instance, action='sync', kwargs={'pk': instance.pk})
|
url = get_action_url(instance, action='sync', kwargs={'pk': instance.pk})
|
||||||
@ -162,7 +162,7 @@ def sync_button(instance):
|
|||||||
# Legacy list buttons
|
# Legacy list buttons
|
||||||
#
|
#
|
||||||
|
|
||||||
# TODO: Remove in NetBox v4.6
|
# TODO: Remove in NetBox v4.7
|
||||||
@register.inclusion_tag('buttons/add.html')
|
@register.inclusion_tag('buttons/add.html')
|
||||||
def add_button(model, action='add'):
|
def add_button(model, action='add'):
|
||||||
try:
|
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')
|
@register.inclusion_tag('buttons/import.html')
|
||||||
def import_button(model, action='bulk_import'):
|
def import_button(model, action='bulk_import'):
|
||||||
try:
|
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)
|
@register.inclusion_tag('buttons/export.html', takes_context=True)
|
||||||
def export_button(context, model):
|
def export_button(context, model):
|
||||||
object_type = ObjectType.objects.get_for_model(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)
|
@register.inclusion_tag('buttons/bulk_edit.html', takes_context=True)
|
||||||
def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
|
def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
|
||||||
try:
|
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)
|
@register.inclusion_tag('buttons/bulk_delete.html', takes_context=True)
|
||||||
def bulk_delete_button(context, model, action='bulk_delete', query_params=None):
|
def bulk_delete_button(context, model, action='bulk_delete', query_params=None):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user