Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

Commit 81f1131

Browse files
authored
Merge pull request #7 from dzhuang/master
Django 2 form media compatibility.
2 parents 8acd82d + ff1a5c5 commit 81f1131

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bootstrap3_datetime/widgets.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@ def get_momentjs_supported_locale():
6161

6262
class DateTimePicker(DateTimeInput):
6363
class Media:
64-
class JsFiles(object):
65-
def __iter__(self):
66-
yield 'bootstrap3_datetime/js/moment-with-locales.min.js'
67-
yield 'bootstrap3_datetime/js/bootstrap-datetimepicker.min.js'
68-
69-
js = JsFiles()
64+
js = ('bootstrap3_datetime/js/moment-with-locales.min.js',
65+
'bootstrap3_datetime/js/bootstrap-datetimepicker.min.js')
7066
css = {'all': ('bootstrap3_datetime/css/bootstrap-datetimepicker.min.css',), }
7167

7268
# http://momentjs.com/docs/#/parsing/string-format/

0 commit comments

Comments
 (0)