mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
PEP8 fixes
This commit is contained in:
committed by
jeremystretch
parent
dc522a0135
commit
5c1417c4c7
@ -21,7 +21,7 @@ from netbox.config import PARAMS
|
||||
# Monkey patch to fix Django 4.0 support for graphene-django (see
|
||||
# https://github.com/graphql-python/graphene-django/issues/1284)
|
||||
# TODO: Remove this when graphene-django 2.16 becomes available
|
||||
django.utils.encoding.force_text = force_str # type: ignore
|
||||
django.utils.encoding.force_text = force_str # type: ignore
|
||||
|
||||
|
||||
#
|
||||
@ -669,7 +669,8 @@ for plugin_name in PLUGINS:
|
||||
"and point to the PluginConfig subclass.".format(plugin_name)
|
||||
)
|
||||
|
||||
plugin_module = "{}.{}".format(plugin_config.__module__, plugin_config.__name__) # type: ignore
|
||||
plugin_module = "{}.{}".format(plugin_config.__module__, plugin_config.__name__) # type: ignore
|
||||
|
||||
# Gather additionnal apps to load alongside this plugin
|
||||
plugin_apps = plugin_config.django_apps
|
||||
if plugin_name in plugin_apps:
|
||||
@ -691,7 +692,6 @@ for plugin_name in PLUGINS:
|
||||
"installed within the correct Python environment."
|
||||
)
|
||||
|
||||
|
||||
INSTALLED_APPS.extend(plugin_apps)
|
||||
|
||||
# Preserve uniqueness of the INSTALLED_APPS list, we keep the last occurence
|
||||
|
Reference in New Issue
Block a user