Fix Invalid filter: parse_isotime

Watcher-dashboard is using parse_isotime filter
in templates, which causes templates to be invalid.
Issue can be fixed by importing filters from horizon.utils,
where filter is already defined.

https://docs.djangoproject.com/en/2.1/howto/custom-template-tags/

Change-Id: I6b89ca48efe1cd7d4d98025ee45d733a86b5dc2f
Closes-bug: #1791038
This commit is contained in:
Michal Arbet 2018-09-06 11:51:06 +02:00
parent e6e8732c22
commit 99f67f0171
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# Copyright (c) 2018 Ultimum Technologies s.r.o
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from horizon.utils import filters # noqa