diff --git a/src/authentic2_auth_fedict/fields.py b/src/authentic2_auth_fedict/fields.py index 84f8b46..9746e8d 100644 --- a/src/authentic2_auth_fedict/fields.py +++ b/src/authentic2_auth_fedict/fields.py @@ -15,14 +15,16 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import re +import requests import time from urllib.parse import urljoin from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ -import re -import requests + +from gadjo.templatetags.gadjo import xstatic class NrnField(forms.CharField): @@ -43,6 +45,7 @@ class DateWidget(forms.TextInput): class Media: css = {'all': ('authentic2_auth_fedict/css/datetimepicker.css',)} js = ( + xstatic('jquery', 'jquery.min.js'), 'authentic2_auth_fedict/js/bootstrap-datetimepicker.js', 'authentic2_auth_fedict/js/bootstrap-datetimepicker.fr.js', 'authentic2_auth_fedict/js/support.js',