title: Error when opening a table through the admin panel of a Django site
body: <p>Into the Django project imported a SQLite database containing records. When opening tables containing fields with the Date type through the admin panel, an error occurs (see below); when opening other tables of this database, no errors occur.
  ERROR</p>
  <pre><code>return datetime.date(*map(int, val.split(b&quot;-&quot;)))
  ValueError: invalid literal for int() with base 10: b'19 00:00:00'
  </code></pre>
  <p>models.py file</p>
  <pre><code>class Contract(models.Model):
      registry_number = models.TextField(primary_key=True, blank=True, null=False)
      link_to_contract = models.TextField(blank=True, null=True)
      date_conclusion_of_a_contract = models.DateField(blank=True, null=True)
  
      class Meta:
          managed = True
          db_table = 'Contract'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/bszGk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bszGk.png" alt="BD" /></a></p>