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

Fixes #2687: Correct naming of before/after filters for changelog entries

Jeremy Stretch 7 лет назад
Родитель
Сommit
dd2a6a41da
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 0
      CHANGELOG.md
  2. 2 3
      netbox/extras/forms.py

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@ v2.5.1 (FUTURE)
 * [#2680](https://github.com/digitalocean/netbox/issues/2680) - Disallow POST requests to `/dcim/interface-connections/` API endpoint
 * [#2683](https://github.com/digitalocean/netbox/issues/2683) - Fix exception when connecting a cable to a RearPort with no corresponding FrontPort
 * [#2684](https://github.com/digitalocean/netbox/issues/2684) - Fix custom field filtering
+* [#2687](https://github.com/digitalocean/netbox/issues/2687) - Correct naming of before/after filters for changelog entries
 
 ---
 

+ 2 - 3
netbox/extras/forms.py

@@ -313,15 +313,14 @@ class ObjectChangeFilterForm(BootstrapMixin, forms.Form):
         required=False,
         label='Search'
     )
-    # TODO: Change time_0 and time_1 to time_after and time_before for django-filter==2.0
-    time_0 = forms.DateTimeField(
+    time_after = forms.DateTimeField(
         label='After',
         required=False,
         widget=forms.TextInput(
             attrs={'placeholder': 'YYYY-MM-DD hh:mm:ss'}
         )
     )
-    time_1 = forms.DateTimeField(
+    time_before = forms.DateTimeField(
         label='Before',
         required=False,
         widget=forms.TextInput(