title: Issue with parsing date in legacy database | Django inspectdb
body: <p>I have an application running in MySQL. I want to create an API, so i tried with Django Rest Framework.</p>
  <p>Created the django models by using,</p>
  <pre><code>manage.py inspectdb &gt; models.py
  </code></pre>
  <p>Everything works fine. But I have a datefield in the existing database with value: <code>0000-00-00 00:00:00</code>. While accessing this data, I got the below error,</p>
  <p><code>'str' object has no attribute 'tzinfo'</code></p>
  <p><a href="https://i.stack.imgur.com/6Sbrn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Sbrn.png" alt="enter image description here" /></a></p>
  <p>Is there any way to ignore this error? I tried passing <code>null=True, blank=True</code> in <code>models.py</code>. But no use.</p>