I have an input on my date form. Whenever the user modifies the date, it will be updated in Django and will return another date.
When the user enters the screen, I already bring the date as follows: 1996-10-01
Input
<input type="date" ng-model="myobject.date" ng-change="updateField()" ng-init="myobject.date = '{{djangoobj.date}}'">
When I try to just put the value of django in the input, it seems like ng-model
overrides and all goes blank. So I always use NG-INIT to initialize ng-model
with the value of Django. However, when I try to do this with a date field, I get the following error message:
Expected '1996-10-01' to be a date