diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c487fc2..cfc1e96c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,8 +29,8 @@ Django 2.1 introduced the ability to enforce view-only permissions for different these by default. You can grant view permission to a user or group by assigning the "can view" permission for the desired object(s). -To exempt certain objects from the enforcement of view permissions, so that any user (including anonymous users) can -view them, add them to the new `EXEMPT_VIEW_PERMISSIONS` setting in `configuration.py`: +To exempt certain object types from the enforcement of view permissions, so that any user (including anonymous users) +can view them, add them to the new `EXEMPT_VIEW_PERMISSIONS` setting in `configuration.py`: ``` EXEMPT_VIEW_PERMISSIONS = [ diff --git a/netbox/dcim/api/views.py b/netbox/dcim/api/views.py index 4540133b9..c46ffc02a 100644 --- a/netbox/dcim/api/views.py +++ b/netbox/dcim/api/views.py @@ -595,7 +595,11 @@ class PowerPanelViewSet(ModelViewSet): # class PowerFeedViewSet(CustomFieldModelViewSet): - queryset = PowerFeed.objects.select_related('power_panel', 'rack').prefetch_related('tags') + queryset = PowerFeed.objects.select_related( + 'power_panel', 'rack' + ).prefetch_related( + 'tags' + ) serializer_class = serializers.PowerFeedSerializer filterset_class = filters.PowerFeedFilter diff --git a/netbox/extras/admin.py b/netbox/extras/admin.py index 89398ee2b..a29d0df09 100644 --- a/netbox/extras/admin.py +++ b/netbox/extras/admin.py @@ -86,6 +86,10 @@ class CustomLinkForm(forms.ModelForm): class Meta: model = CustomLink exclude = [] + help_texts = { + 'text': 'Jinja2 template code for the link text. Reference the object as {{ obj }}.', + 'url': 'Jinja2 template code for the link URL. Reference the object as {{ obj }}.', + } def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)