Metadata-Version: 1.1
Name: django-bootstrap3-daterangepicker
Version: 1.0.0b3
Summary: Django date range form field
Home-page: https://github.com/YuriMalinov/django-bootstrap3-daterangepicker/
Author: Yuri Malinov
Author-email: yurik.m@gmail.com
License: MIT
Description: # django-bootstrap3-daterangepicker

        

        This is django field wrapper for http://www.daterangepicker.com/ . Usefull for reporting services.

        

        Field data format is tuple (startdate, enddate).

        

        Usage:

        * jQuery, Bootstrap are required on target page

        

        ```python

        class PeriodFilter(forms.Form):

            range = DateRangeField(widget=DateRangeWidget(picker_options={

                'ranges': common_dates()

            }))

        

        # ...    

        form = PeriodFilter(initial={'range': (date.today(), date.today())})

        # ...

        (from_date, to_date) = form.cleaned_data['range']

        ```

        

        Template - don't forget media:

        ```html

        {% block extracss %}

            {{ filter.media['css'] }}

        {% endblock %}

        {% block endscripts %}

            {{ super() }}

            {{ filter.media['js'] }}

        {% endblock %}

        

        {% block content %}

        {{ filter.range }}

        {% endblock %}

        ```

        

        Special thanks to https://github.com/nkunihiko/django-bootstrap3-datetimepicker/ for guidance in creating custom fields.

        
Keywords: django daterange picker
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
