From 946694b87962ce757cd0ee1ef190d5258bd59eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Wed, 11 Oct 2017 21:36:14 +0000 Subject: [PATCH] =?UTF-8?q?D=C3=A9place=20le=20BFT=20tag=20dans=20l'app=20?= =?UTF-8?q?Re2o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plus générique que dans une app spécifique donc plus adapté pour utiliser le tag dans d'autre apps que machine --- machines/views.py | 2 +- {machines => re2o}/templatetags/__init__.py | 0 {machines => re2o}/templatetags/bootstrap_form_typeahead.py | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {machines => re2o}/templatetags/__init__.py (100%) rename {machines => re2o}/templatetags/bootstrap_form_typeahead.py (100%) diff --git a/machines/views.py b/machines/views.py index 06843a76..06b151f0 100644 --- a/machines/views.py +++ b/machines/views.py @@ -55,7 +55,7 @@ from .models import IpType, Machine, Interface, IpList, MachineType, Extension, from users.models import User from users.models import all_has_access from preferences.models import GeneralOption, OptionalMachine -from .templatetags.bootstrap_form_typeahead import hidden_id, input_id +from re2o.templatetags.bootstrap_form_typeahead import hidden_id, input_id def all_active_interfaces(): """Renvoie l'ensemble des machines autorisées à sortir sur internet """ diff --git a/machines/templatetags/__init__.py b/re2o/templatetags/__init__.py similarity index 100% rename from machines/templatetags/__init__.py rename to re2o/templatetags/__init__.py diff --git a/machines/templatetags/bootstrap_form_typeahead.py b/re2o/templatetags/bootstrap_form_typeahead.py similarity index 100% rename from machines/templatetags/bootstrap_form_typeahead.py rename to re2o/templatetags/bootstrap_form_typeahead.py