Просмотр исходного кода

Fixes #4527: Fix assignment of certain tags to config contexts

Jeremy Stretch 5 лет назад
Родитель
Сommit
f019c8d2ce
2 измененных файлов с 4 добавлено и 1 удалено
  1. 4 0
      docs/release-notes/version-2.8.md
  2. 0 1
      netbox/extras/forms.py

+ 4 - 0
docs/release-notes/version-2.8.md

@@ -7,6 +7,10 @@
 * [#3294](https://github.com/netbox-community/netbox/issues/3294) - Implement mechanism for storing user preferences
 * [#3294](https://github.com/netbox-community/netbox/issues/3294) - Implement mechanism for storing user preferences
 * [#4531](https://github.com/netbox-community/netbox/issues/4531) - Retain user's pagination preference
 * [#4531](https://github.com/netbox-community/netbox/issues/4531) - Retain user's pagination preference
 
 
+### Bug Fixes
+
+* [#4527](https://github.com/netbox-community/netbox/issues/4527) - Fix assignment of certain tags to config contexts
+
 ---
 ---
 
 
 ## v2.8.1 (2020-04-23)
 ## v2.8.1 (2020-04-23)

+ 0 - 1
netbox/extras/forms.py

@@ -229,7 +229,6 @@ class ConfigContextForm(BootstrapMixin, forms.ModelForm):
     )
     )
     tags = DynamicModelMultipleChoiceField(
     tags = DynamicModelMultipleChoiceField(
         queryset=Tag.objects.all(),
         queryset=Tag.objects.all(),
-        to_field_name='slug',
         required=False
         required=False
     )
     )
     data = JSONField(
     data = JSONField(