TypeError: 'datetime.date' object has no attribute '__getitem__'

Viewed 2898

I use in my models.py

class Pedido(models.Model):
    data_pedido = models.DateField('Data do pedido')
    cliente = models.ForeignKey(Cliente)

but runserver and add date via admin

show this message.

I use sqlite3.

enter image description here

enter image description here

See my project in github

1 Answers
Related