[Answer]-Type object 'Espece' has no attribute 'esp_id'

1👍

The error comes from the line form=EspeceForm(request.POST,instance=Espece)

Your are passing the “class Espece” when you really need a instance of this class.

Leave a comment