diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/bootstrap3_datetime/widgets.py django-bootstrap3-datetimepicker-2-2.8.2/bootstrap3_datetime/widgets.py --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/bootstrap3_datetime/widgets.py 2017-08-11 17:13:13.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/bootstrap3_datetime/widgets.py 2018-11-19 11:32:57.000000000 +0000 @@ -49,9 +49,16 @@ js_template = """ """ def __init__(self, attrs=None, format=None, options=None, div_attrs=None, icon_attrs=None): @@ -74,7 +81,16 @@ if format and not self.options.get('format') and not self.attrs.get('date-format'): self.options['format'] = self.conv_datetime_format_py2js(format) - def render(self, name, value, attrs=None): + def _format_value(self, value): + """This function name was changed in Django 1.10 and removed in 2.0.""" + # Use renamed format_name() for Django versions >= 1.10. + if hasattr(self, 'format_value'): + return super(DateTimePicker, self).format_value(value) + # Use old _format_name() for Django versions < 1.10. + else: + return super(DateTimePicker, self)._format_value(value) + + def render(self, name, value, attrs=None, renderer=None): if value is None: value = '' diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/debian/changelog django-bootstrap3-datetimepicker-2-2.8.2/debian/changelog --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/debian/changelog 2019-04-14 15:00:00.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/debian/changelog 2019-06-24 15:00:00.000000000 +0000 @@ -1,3 +1,9 @@ +django-bootstrap3-datetimepicker-2 (2.8.2-0~bionic0) bionic; urgency=high + + * New upstream version + + -- Angelos Tzotsos Mon, 24 Jun 2019 17:00:00 +0200 + django-bootstrap3-datetimepicker-2 (2.5.0+geonode-1~bionic0) bionic; urgency=high * No change rebuild diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/django_bootstrap3_datetimepicker_2.egg-info/PKG-INFO django-bootstrap3-datetimepicker-2-2.8.2/django_bootstrap3_datetimepicker_2.egg-info/PKG-INFO --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/django_bootstrap3_datetimepicker_2.egg-info/PKG-INFO 2017-08-11 17:15:36.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/django_bootstrap3_datetimepicker_2.egg-info/PKG-INFO 2018-11-19 11:33:14.000000000 +0000 @@ -1,101 +1,12 @@ Metadata-Version: 1.1 Name: django-bootstrap3-datetimepicker-2 -Version: 2.5.0 +Version: 2.8.2 Summary: Bootstrap3 compatible datetimepicker for Django projects. Home-page: https://github.com/samuelcolvin/django-bootstrap3-datetimepicker Author: Nakahara Kunihiko/Samuel Colvin -Author-email: nakahara.kunihiko@gmail.com/s@muelcolvin.com +Author-email: s@muelcolvin.com License: Apache License 2.0 -Description: django-bootstrap3-datetimepicker - ================================ - - This package uses `Bootstrap v3 datetimepicker widget version - 4 `__. - - This project was originally a fork of - https://github.com/nkunihiko/django-bootstrap3-datetimepicker, it now - has the following breaking changes: - - - js/css files are no longer included in the project, managing them is - up to the user, eg. using - `grablib `__. - - the widget no longer has js/css assets. these are left for you to - deploy as you wish. - - bug/warning fixes - - remove support for python 2.6 and associated clean up - - Install - ------- - - :: - - pip install django-bootstrap3-datetimepicker-2 - - Example - ------- - - forms.py - ^^^^^^^^ - - .. code:: python - - from bootstrap3_datetime.widgets import DateTimePicker - from django import forms - - class ToDoForm(forms.Form): - todo = forms.CharField( - widget=forms.TextInput(attrs={"class": "form-control"})) - date = forms.DateField( - widget=DateTimePicker(options={"format": "YYYY-MM-DD"})) - reminder = forms.DateTimeField( - required=False, - widget=DateTimePicker(options={"format": "YYYY-MM-DD HH:mm"})) - - The ``options`` will be passed to the JavaScript datetimepicker - instance. Available ``options`` are explained in the following - documents: - - - http://eonasdan.github.io/bootstrap-datetimepicker/ - - You don't need to set the ``language`` option, because it will be set - the current language of the thread automatically. - - template.html - ^^^^^^^^^^^^^ - - .. code:: html - - - - - - - -
- {{ form|bootstrap }} - {% csrf_token %} -
- -
-
- - - - Here we assume you're using - `django-bootstrap-form `__ - or - `django-jinja-bootstrap-form `__ - but you can draw out your HTML manually. - - Requirements - ------------ - - - Python >= 2.7 - - Django >= 1.8 - - Bootstrap == 3.X - - Moment >= 2.10.6 - - bootstrap-datetimepicker >= 4.15.35 - +Description: UNKNOWN Platform: UNKNOWN Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/django_bootstrap3_datetimepicker_2.egg-info/SOURCES.txt django-bootstrap3-datetimepicker-2-2.8.2/django_bootstrap3_datetimepicker_2.egg-info/SOURCES.txt --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/django_bootstrap3_datetimepicker_2.egg-info/SOURCES.txt 2017-08-11 17:15:36.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/django_bootstrap3_datetimepicker_2.egg-info/SOURCES.txt 2018-11-19 11:33:14.000000000 +0000 @@ -1,3 +1,4 @@ +README.md setup.py bootstrap3_datetime/__init__.py bootstrap3_datetime/widgets.py diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/PKG-INFO django-bootstrap3-datetimepicker-2-2.8.2/PKG-INFO --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/PKG-INFO 2017-08-11 17:15:36.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/PKG-INFO 2018-11-19 11:33:15.000000000 +0000 @@ -1,101 +1,12 @@ Metadata-Version: 1.1 Name: django-bootstrap3-datetimepicker-2 -Version: 2.5.0 +Version: 2.8.2 Summary: Bootstrap3 compatible datetimepicker for Django projects. Home-page: https://github.com/samuelcolvin/django-bootstrap3-datetimepicker Author: Nakahara Kunihiko/Samuel Colvin -Author-email: nakahara.kunihiko@gmail.com/s@muelcolvin.com +Author-email: s@muelcolvin.com License: Apache License 2.0 -Description: django-bootstrap3-datetimepicker - ================================ - - This package uses `Bootstrap v3 datetimepicker widget version - 4 `__. - - This project was originally a fork of - https://github.com/nkunihiko/django-bootstrap3-datetimepicker, it now - has the following breaking changes: - - - js/css files are no longer included in the project, managing them is - up to the user, eg. using - `grablib `__. - - the widget no longer has js/css assets. these are left for you to - deploy as you wish. - - bug/warning fixes - - remove support for python 2.6 and associated clean up - - Install - ------- - - :: - - pip install django-bootstrap3-datetimepicker-2 - - Example - ------- - - forms.py - ^^^^^^^^ - - .. code:: python - - from bootstrap3_datetime.widgets import DateTimePicker - from django import forms - - class ToDoForm(forms.Form): - todo = forms.CharField( - widget=forms.TextInput(attrs={"class": "form-control"})) - date = forms.DateField( - widget=DateTimePicker(options={"format": "YYYY-MM-DD"})) - reminder = forms.DateTimeField( - required=False, - widget=DateTimePicker(options={"format": "YYYY-MM-DD HH:mm"})) - - The ``options`` will be passed to the JavaScript datetimepicker - instance. Available ``options`` are explained in the following - documents: - - - http://eonasdan.github.io/bootstrap-datetimepicker/ - - You don't need to set the ``language`` option, because it will be set - the current language of the thread automatically. - - template.html - ^^^^^^^^^^^^^ - - .. code:: html - - - - - - - -
- {{ form|bootstrap }} - {% csrf_token %} -
- -
-
- - - - Here we assume you're using - `django-bootstrap-form `__ - or - `django-jinja-bootstrap-form `__ - but you can draw out your HTML manually. - - Requirements - ------------ - - - Python >= 2.7 - - Django >= 1.8 - - Bootstrap == 3.X - - Moment >= 2.10.6 - - bootstrap-datetimepicker >= 4.15.35 - +Description: UNKNOWN Platform: UNKNOWN Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/README.md django-bootstrap3-datetimepicker-2-2.8.2/README.md --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/README.md 1970-01-01 00:00:00.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/README.md 2018-11-19 11:32:57.000000000 +0000 @@ -0,0 +1,86 @@ +# django-bootstrap3-datetimepicker + +This package uses [Bootstrap v3 datetimepicker widget version 4](https://github.com/Eonasdan/bootstrap-datetimepicker). + +This project was originally a fork of https://github.com/nkunihiko/django-bootstrap3-datetimepicker, +it now has the following breaking changes: + +* js/css files are no longer included in the project, managing them is up to the user, eg. using +[grablib](https://github.com/samuelcolvin/grablib). +* the widget no longer has js/css assets. these are left for you to deploy as you wish. +* bug/warning fixes +* remove support for python 2.6 and associated clean up + +## Install + + pip install django-bootstrap3-datetimepicker-2 + +## Example + +#### forms.py + +```python +from bootstrap3_datetime.widgets import DateTimePicker +from django import forms + + class ToDoForm(forms.Form): + todo = forms.CharField( + widget=forms.TextInput(attrs={"class": "form-control"})) + date = forms.DateField( + widget=DateTimePicker(options={"format": "YYYY-MM-DD"})) + reminder = forms.DateTimeField( + required=False, + widget=DateTimePicker(options={"format": "YYYY-MM-DD HH:mm"})) +``` + +The `options` will be passed to the JavaScript datetimepicker instance. +Available `options` are explained in the following documents: + +* http://eonasdan.github.io/bootstrap-datetimepicker/ + +You don't need to set the `language` option, +because it will be set the current language of the thread automatically. + +#### template.html + +```html + + + + + + +
+ {{ form|bootstrap }} + {% csrf_token %} +
+ +
+
+ + +``` + +Here we assume you're using [django-bootstrap-form](https://github.com/tzangms/django-bootstrap-form) or +[django-jinja-bootstrap-form](https://github.com/samuelcolvin/django-jinja-bootstrap-form) but you can +draw out your HTML manually. + +## Requirements + +* Python >= 2.7 +* Django >= 1.11 +* Bootstrap == 3.X +* Moment >= 2.10.6 +* bootstrap-datetimepicker >= 4.15.35 + +### Backwards Compatibility + +If you want to use the picker in a Django 1.9 or 1.10 project, you can adapt by overwriting `build_attrs` with + +```python +def build_attrs(self, base_attrs=None, extra_attrs=None, **kwargs): + if extra_attrs: + base_attrs.update(extra_attrs) + base_attrs.update(kwargs) + return super().build_attrs(**base_attrs) +``` diff -Nru django-bootstrap3-datetimepicker-2-2.5.0+geonode/setup.py django-bootstrap3-datetimepicker-2-2.8.2/setup.py --- django-bootstrap3-datetimepicker-2-2.5.0+geonode/setup.py 2018-08-22 17:03:04.000000000 +0000 +++ django-bootstrap3-datetimepicker-2-2.8.2/setup.py 2018-11-19 11:32:57.000000000 +0000 @@ -6,15 +6,17 @@ import pypandoc long_description = pypandoc.convert('README.md', 'rst') +VERSION = '2.8.2' + setup( name='django-bootstrap3-datetimepicker-2', packages=['bootstrap3_datetime'], include_package_data=True, - version='2.5.0', + version=VERSION, description='Bootstrap3 compatible datetimepicker for Django projects.', long_description=long_description, author='Nakahara Kunihiko/Samuel Colvin', - author_email='nakahara.kunihiko@gmail.com', + author_email='s@muelcolvin.com', url='https://github.com/samuelcolvin/django-bootstrap3-datetimepicker', license='Apache License 2.0', classifiers=[