{% load widget_tweaks %}

<form action="{{ request.get_full_path }}" method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <script type="text/javascript">
    $('#id_start_date').datepicker({showOn: 'button'});
    $('#id_end_date').datepicker({showOn: 'button'});
    </script>
 </form>
