nautobot 3.0.1__py3-none-any.whl → 3.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/apps/views.py +2 -0
- nautobot/core/testing/filters.py +2 -2
- nautobot/core/ui/object_detail.py +2 -2
- nautobot/dcim/tables/devices.py +1 -1
- nautobot/dcim/views.py +1 -1
- nautobot/extras/models/jobs.py +1 -0
- nautobot/project-static/dist/css/graphql-libraries.css.map +1 -1
- nautobot/project-static/dist/css/materialdesignicons.css.map +1 -1
- nautobot/project-static/dist/css/nautobot.css.map +1 -1
- nautobot/project-static/dist/js/graphql-libraries.js +1 -1
- nautobot/project-static/dist/js/graphql-libraries.js.map +1 -1
- nautobot/project-static/dist/js/libraries.js.map +1 -1
- nautobot/project-static/dist/js/nautobot-graphiql.js.map +1 -1
- nautobot/project-static/dist/js/nautobot.js.map +1 -1
- nautobot/project-static/img/dark-theme.png +0 -0
- nautobot/project-static/img/light-theme.png +0 -0
- nautobot/project-static/img/system-theme.png +0 -0
- nautobot/ui/package-lock.json +25 -25
- nautobot/ui/package.json +6 -6
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/METADATA +6 -6
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/RECORD +25 -25
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/LICENSE.txt +0 -0
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/NOTICE +0 -0
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/WHEEL +0 -0
- {nautobot-3.0.1.dist-info → nautobot-3.0.2.dist-info}/entry_points.txt +0 -0
nautobot/apps/views.py
CHANGED
|
@@ -24,6 +24,7 @@ from nautobot.core.views.mixins import (
|
|
|
24
24
|
ObjectBulkDestroyViewMixin,
|
|
25
25
|
ObjectBulkUpdateViewMixin,
|
|
26
26
|
ObjectChangeLogViewMixin,
|
|
27
|
+
ObjectDataComplianceViewMixin,
|
|
27
28
|
ObjectDestroyViewMixin,
|
|
28
29
|
ObjectDetailViewMixin,
|
|
29
30
|
ObjectEditViewMixin,
|
|
@@ -72,6 +73,7 @@ __all__ = (
|
|
|
72
73
|
"ObjectBulkDestroyViewMixin",
|
|
73
74
|
"ObjectBulkUpdateViewMixin",
|
|
74
75
|
"ObjectChangeLogViewMixin",
|
|
76
|
+
"ObjectDataComplianceViewMixin",
|
|
75
77
|
"ObjectDeleteView",
|
|
76
78
|
"ObjectDestroyViewMixin",
|
|
77
79
|
"ObjectDetailViewMixin",
|
nautobot/core/testing/filters.py
CHANGED
|
@@ -65,8 +65,8 @@ class FilterTestCases:
|
|
|
65
65
|
|
|
66
66
|
if len(test_values) < 2:
|
|
67
67
|
raise ValueError(
|
|
68
|
-
f"Cannot find enough valid test data for {queryset.model._meta.object_name} field {field_name} "
|
|
69
|
-
|
|
68
|
+
f"Cannot find enough valid test data for {queryset.model._meta.object_name} field {field_name}. "
|
|
69
|
+
"At least 3 unique values are required to test multivalue filters."
|
|
70
70
|
)
|
|
71
71
|
return test_values
|
|
72
72
|
|
|
@@ -1841,8 +1841,8 @@ class _ObjectCustomFieldsPanel(GroupedKeyValueTablePanel):
|
|
|
1841
1841
|
elif cf.type == CustomFieldTypeChoices.TYPE_JSON and value is not None:
|
|
1842
1842
|
return format_html(
|
|
1843
1843
|
"""<p>
|
|
1844
|
-
<button class="btn btn-
|
|
1845
|
-
data-target="#cf_{field_key}" aria-expanded="false" aria-controls="cf_{field_key}">
|
|
1844
|
+
<button class="btn btn-sm btn-primary" type="button" data-bs-toggle="collapse"
|
|
1845
|
+
data-bs-target="#cf_{field_key}" aria-expanded="false" aria-controls="cf_{field_key}">
|
|
1846
1846
|
Show/Hide
|
|
1847
1847
|
</button>
|
|
1848
1848
|
</p>
|
nautobot/dcim/tables/devices.py
CHANGED
|
@@ -400,7 +400,7 @@ class ModularDeviceComponentTable(DeviceComponentTable):
|
|
|
400
400
|
super().__init__(*args, **kwargs)
|
|
401
401
|
|
|
402
402
|
def render_module(self, record, value, **kwargs):
|
|
403
|
-
if value
|
|
403
|
+
if value == self.parent_module or not value:
|
|
404
404
|
return self.default
|
|
405
405
|
return format_html('<a href="{}">{}</a>', value.get_absolute_url(), value)
|
|
406
406
|
|
nautobot/dcim/views.py
CHANGED
|
@@ -964,7 +964,7 @@ class DeviceTypeFieldsPanel(object_detail.ObjectFieldsPanel):
|
|
|
964
964
|
image = getattr(obj, key, None)
|
|
965
965
|
if image:
|
|
966
966
|
return format_html(
|
|
967
|
-
'<a href="{}" target="_blank"><img src="{}" alt="{}" class="img-responsive"></a>',
|
|
967
|
+
'<a href="{}" target="_blank"><img src="{}" alt="{}" class="img-responsive mw-100"></a>',
|
|
968
968
|
image.url,
|
|
969
969
|
image.url,
|
|
970
970
|
image.name,
|
nautobot/extras/models/jobs.py
CHANGED