-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #15462: Audit & clean up the utilities
app
#15501
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…s.handle_rest_api_exception()
…o utilities.request
…ten_dict(), and shallow_compare_dict() to utilities.data
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #15462
Moved the following choice sets from
utilitities.choices
tonetbox.choices
:Moved
utilities.api.rest_api_server_error()
toutilities.error_handlers.handle_rest_api_exception()
Moved
utilities.utils.NetBoxFakeRequest
toutilities.request
Moved
utilities.utils.array_to_ranges()
toutilities.data
Moved
utilities.utils.array_to_string()
toutilities.data
Moved
utilities.utils.clean_html()
toutilities.html
Moved
utilities.utils.content_type_identifier()
toutilities.object_types.object_type_identifier()
Moved
utilities.utils.content_type_name()
toutilities.object_types.object_type_name()
Moved
utilities.utils.copy_safe_request()
toutilities.request
Moved
utilities.utils.count_related()
toutilities.query
Moved
utilities.utils.deepmerge()
toutilities.data
Moved
utilities.utils.dict_to_filter_params()
toutilities.query
Moved
utilities.utils.dict_to_querydict()
toutilities.querydict
Moved
utilities.utils.deserialize_object()
toutilities.serialization
Moved
utilities.utils.drange()
toutilities.data
Moved
utilities.utils.flatten_dict()
toutilities.data
Moved
utilities.utils.foreground_color()
toutilities.html
Moved
utilities.utils.get_viewname()
toutilities.views
Moved
utilities.utils.highlight_string()
toutilities.html.highlight()
Moved
utilities.utils.local_now()
toutilities.datetime
Moved
utilities.utils.normalize_querydict()
toutilities.querydict
Moved
utilities.utils.prepare_cloned_fields()
toutilities.querydict
Moved
utilities.utils.get_related_models()
toutilities.relations
Moved
utilities.utils.render_jinja2()
toutilities.jinja2
Moved
utilities.utils.shallow_compare_dict()
toutilities.data
Moved
utilities.utils.serialize_object()
toutilities.serialization
Moved
utilities.utils.title()
toutilities.string
Moved
utilities.utils.to_grams()
toutilities.conversion
Moved
utilities.utils.to_meters()
toutilities.conversion
Renamed
utilities.jinja2.ConfigTemplateLoader
toDataFileLoader
Renamed
utilities.permissions.resolve_permission_ct()
toresolve_permission_type()
Removed
utilities.files.sha256_hash()
Removed
utilities.filters.MACAddressFilter
(use MultiValueMACAddressFilter instead)Removed
utilities.utils.csv_format()
Removed
utilities.utils.dynamic_import()