From 0b81cf26b9c0e7ee0e82214ff0c3922b3145c1a2 Mon Sep 17 00:00:00 2001 From: Erwin Gelissen Date: Tue, 18 Sep 2018 10:23:32 +0200 Subject: [PATCH 1/3] Bugfix django2.1 --- datetimewidget/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datetimewidget/widgets.py b/datetimewidget/widgets.py index b159c31..35f8b21 100644 --- a/datetimewidget/widgets.py +++ b/datetimewidget/widgets.py @@ -219,7 +219,7 @@ def __init__(self, attrs=None, options=None, usel10n=None, bootstrap_version=Non super(PickerWidgetMixin, self).__init__(attrs, format=self.format) - def render(self, name, value, attrs=None): + def render(self, name, value, renderer=None, attrs=None): final_attrs = self.build_attrs(attrs) rendered_widget = super(PickerWidgetMixin, self).render(name, value, final_attrs) From 7bb516dd9f26686c8cf187d754e2d0d5130fa869 Mon Sep 17 00:00:00 2001 From: Erwin Gelissen Date: Mon, 18 Mar 2019 16:09:16 +0100 Subject: [PATCH 2/3] Isolate the static files --- datetimewidget/apps.py | 5 +++++ .../static/{ => datetimewidget}/css/datetimepicker.css | 0 .../{ => datetimewidget}/js/bootstrap-datetimepicker.js | 0 .../js/locales/bootstrap-datetimepicker.ar.js | 0 .../js/locales/bootstrap-datetimepicker.bg.js | 0 .../js/locales/bootstrap-datetimepicker.ca.js | 0 .../js/locales/bootstrap-datetimepicker.cs.js | 0 .../js/locales/bootstrap-datetimepicker.da.js | 0 .../js/locales/bootstrap-datetimepicker.de.js | 0 .../js/locales/bootstrap-datetimepicker.ee.js | 0 .../js/locales/bootstrap-datetimepicker.el.js | 0 .../js/locales/bootstrap-datetimepicker.es.js | 0 .../js/locales/bootstrap-datetimepicker.eu.js | 0 .../js/locales/bootstrap-datetimepicker.fi.js | 0 .../js/locales/bootstrap-datetimepicker.fr.js | 0 .../js/locales/bootstrap-datetimepicker.he.js | 0 .../js/locales/bootstrap-datetimepicker.hr.js | 0 .../js/locales/bootstrap-datetimepicker.hu.js | 0 .../js/locales/bootstrap-datetimepicker.id.js | 0 .../js/locales/bootstrap-datetimepicker.is.js | 0 .../js/locales/bootstrap-datetimepicker.it.js | 0 .../js/locales/bootstrap-datetimepicker.ja.js | 0 .../js/locales/bootstrap-datetimepicker.ko.js | 0 .../js/locales/bootstrap-datetimepicker.kr.js | 0 .../js/locales/bootstrap-datetimepicker.lt.js | 0 .../js/locales/bootstrap-datetimepicker.lv.js | 0 .../js/locales/bootstrap-datetimepicker.ms.js | 0 .../js/locales/bootstrap-datetimepicker.nb.js | 0 .../js/locales/bootstrap-datetimepicker.nl.js | 0 .../js/locales/bootstrap-datetimepicker.no.js | 0 .../js/locales/bootstrap-datetimepicker.pl.js | 0 .../js/locales/bootstrap-datetimepicker.pt-BR.js | 0 .../js/locales/bootstrap-datetimepicker.pt.js | 0 .../js/locales/bootstrap-datetimepicker.ro.js | 0 .../js/locales/bootstrap-datetimepicker.rs-latin.js | 0 .../js/locales/bootstrap-datetimepicker.rs.js | 0 .../js/locales/bootstrap-datetimepicker.ru.js | 0 .../js/locales/bootstrap-datetimepicker.sk.js | 0 .../js/locales/bootstrap-datetimepicker.sl.js | 0 .../js/locales/bootstrap-datetimepicker.sv.js | 0 .../js/locales/bootstrap-datetimepicker.sw.js | 0 .../js/locales/bootstrap-datetimepicker.th.js | 0 .../js/locales/bootstrap-datetimepicker.tr.js | 0 .../js/locales/bootstrap-datetimepicker.ua.js | 0 .../js/locales/bootstrap-datetimepicker.uk.js | 0 .../js/locales/bootstrap-datetimepicker.zh-CN.js | 0 .../js/locales/bootstrap-datetimepicker.zh-TW.js | 0 47 files changed, 5 insertions(+) create mode 100755 datetimewidget/apps.py rename datetimewidget/static/{ => datetimewidget}/css/datetimepicker.css (100%) rename datetimewidget/static/{ => datetimewidget}/js/bootstrap-datetimepicker.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ar.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.bg.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ca.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.cs.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.da.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.de.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ee.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.el.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.es.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.eu.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.fi.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.fr.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.he.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.hr.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.hu.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.id.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.is.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.it.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ja.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ko.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.kr.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.lt.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.lv.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ms.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.nb.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.nl.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.no.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.pl.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.pt-BR.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.pt.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ro.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.rs-latin.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.rs.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ru.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.sk.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.sl.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.sv.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.sw.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.th.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.tr.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.ua.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.uk.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.zh-CN.js (100%) rename datetimewidget/static/{ => datetimewidget}/js/locales/bootstrap-datetimepicker.zh-TW.js (100%) diff --git a/datetimewidget/apps.py b/datetimewidget/apps.py new file mode 100755 index 0000000..d888af6 --- /dev/null +++ b/datetimewidget/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class AppConfig(AppConfig): + name = 'datetimewidget' diff --git a/datetimewidget/static/css/datetimepicker.css b/datetimewidget/static/datetimewidget/css/datetimepicker.css similarity index 100% rename from datetimewidget/static/css/datetimepicker.css rename to datetimewidget/static/datetimewidget/css/datetimepicker.css diff --git a/datetimewidget/static/js/bootstrap-datetimepicker.js b/datetimewidget/static/datetimewidget/js/bootstrap-datetimepicker.js similarity index 100% rename from datetimewidget/static/js/bootstrap-datetimepicker.js rename to datetimewidget/static/datetimewidget/js/bootstrap-datetimepicker.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ar.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ar.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ar.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ar.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.bg.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.bg.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.bg.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.bg.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ca.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ca.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ca.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ca.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.cs.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.cs.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.cs.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.cs.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.da.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.da.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.da.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.da.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.de.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.de.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.de.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.de.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ee.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ee.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ee.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ee.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.el.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.el.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.el.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.el.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.es.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.es.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.es.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.es.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.eu.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.eu.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.eu.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.eu.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.fi.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.fi.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.fi.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.fi.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.fr.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.fr.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.fr.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.fr.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.he.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.he.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.he.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.he.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.hr.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.hr.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.hr.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.hr.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.hu.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.hu.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.hu.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.hu.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.id.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.id.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.id.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.id.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.is.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.is.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.is.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.is.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.it.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.it.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.it.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.it.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ja.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ja.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ja.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ja.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ko.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ko.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ko.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ko.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.kr.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.kr.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.kr.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.kr.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.lt.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.lt.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.lt.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.lt.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.lv.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.lv.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.lv.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.lv.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ms.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ms.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ms.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ms.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.nb.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.nb.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.nb.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.nb.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.nl.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.nl.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.nl.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.nl.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.no.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.no.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.no.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.no.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.pl.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pl.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.pl.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pl.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.pt-BR.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pt-BR.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.pt-BR.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pt-BR.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.pt.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pt.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.pt.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.pt.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ro.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ro.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ro.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ro.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.rs-latin.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.rs-latin.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.rs-latin.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.rs-latin.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.rs.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.rs.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.rs.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.rs.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ru.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ru.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ru.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ru.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.sk.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sk.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.sk.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sk.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.sl.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sl.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.sl.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sl.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.sv.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sv.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.sv.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sv.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.sw.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sw.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.sw.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.sw.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.th.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.th.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.th.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.th.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.tr.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.tr.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.tr.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.tr.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.ua.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ua.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.ua.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.ua.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.uk.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.uk.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.uk.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.uk.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.zh-CN.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.zh-CN.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.zh-CN.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.zh-CN.js diff --git a/datetimewidget/static/js/locales/bootstrap-datetimepicker.zh-TW.js b/datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.zh-TW.js similarity index 100% rename from datetimewidget/static/js/locales/bootstrap-datetimepicker.zh-TW.js rename to datetimewidget/static/datetimewidget/js/locales/bootstrap-datetimepicker.zh-TW.js From ca79bb8beca00865e3958c6cba8708a45a73f4fc Mon Sep 17 00:00:00 2001 From: Erwin Gelissen Date: Sat, 30 Mar 2019 19:26:14 +0100 Subject: [PATCH 3/3] Bugfix --- datetimewidget/widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datetimewidget/widgets.py b/datetimewidget/widgets.py index 35f8b21..1a74b9b 100644 --- a/datetimewidget/widgets.py +++ b/datetimewidget/widgets.py @@ -251,15 +251,15 @@ def render(self, name, value, renderer=None, attrs=None): def _media(self): - js = ["js/bootstrap-datetimepicker.js"] + js = ["datetimewidget/js/bootstrap-datetimepicker.js"] language = self.options.get('language', 'en') if language != 'en': - js.append("js/locales/bootstrap-datetimepicker.%s.js" % language) + js.append("datetimewidget/js/locales/bootstrap-datetimepicker.%s.js" % language) return widgets.Media( css={ - 'all': ('css/datetimepicker.css',) + 'all': ('datetimewidget/css/datetimepicker.css',) }, js=js )