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 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",
@@ -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
- f"(found {len(test_values)} option(s): {test_values}) but need at least 2 of them"
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-xs btn-primary" type="button" data-toggle="collapse"
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>
@@ -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 and value == self.parent_module:
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,
@@ -1137,6 +1137,7 @@ class ScheduledJobs(models.Model):
1137
1137
  last_update = models.DateTimeField(null=False)
1138
1138
 
1139
1139
  objects = ScheduledJobsManager()
1140
+ is_version_controlled = False
1140
1141
  is_data_compliance_model = False
1141
1142
 
1142
1143
  def __str__(self):