Fix datetimepicker
This commit is contained in:
parent
d34fe19754
commit
0da2098bbe
3 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,8 @@ class DateTimePickerWidget(forms.DateTimeInput):
|
|||
|
||||
@property
|
||||
def media(self):
|
||||
css_url = "https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.min.css"
|
||||
js_url = "https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js"
|
||||
css_url = "/static/datetime-picker/datetimepicker.min.css"
|
||||
js_url = "/static/datetime-picker/datetimepicker.full.min.js"
|
||||
return forms.Media(
|
||||
js=[js_url],
|
||||
css={"screen": [css_url]},
|
||||
|
|
1
resources/datetime-picker/datetimepicker.full.min.js
vendored
Normal file
1
resources/datetime-picker/datetimepicker.full.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
resources/datetime-picker/datetimepicker.min.css
vendored
Normal file
1
resources/datetime-picker/datetimepicker.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue