-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I am using Django 1.11, Python 3 and Crispy Forms. The form renders properly but, the a javascript error pops up complaining about an Uncaught Reference of:
$("#id_work_start_time_pickers:has(input:not([readonly],[disabled]))").datetimepicker({"format": "YYYY-MM-DD HH:mm:ss", "ignoreReadonly": true, "sideBySide": true});
The generated HTML looks like:
<div id="div_id_work_start_time" class="form-group">
<label for="id_work_start_time" class="control-label requiredField">
Work start time<span class="asteriskField">*</span>
</label>
<div class="controls ">
<div class="input-group date" id="id_work_start_time_pickers">
<input class="form-control datetimepicker form-control" id="id_work_start_time" name="work_start_time" required="True" type="text"/>
<span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div>
<script>
$(function(){
$("#id_work_start_time_pickers:has(input:not([readonly],[disabled]))").datetimepicker({"format": "YYYY-MM-DD HH:mm:ss", "ignoreReadonly": true, "sideBySide": true});
});
</script>
</div>
Not sure where read only is being set? Any Ideas. I tried passing the option to ignore. But, no luck
Metadata
Metadata
Assignees
Labels
No labels