Answer the question
In order to leave comments, you need to log in
Incomprehensible Form behavior in Flask how to understand what's wrong?
Good afternoon.
There was a small problem which I can not solve in any way.
An error occurs when trying to read or write values to / from the form
AttributeError: 'tuple' object has no attribute 'strftime'
Answer the question
In order to leave comments, you need to log in
The order is something like this:
1) You look at sp_driverList.dl_data - what is the value and type before assigning the form
2) If everything is fine there, then somewhere in the form the field is being converted to a tuple
3) If the form is a regular ModelForm without redefining fields - you go to look model
Up to 3 points, usually no one reaches - the mistake most often lies in the first two options
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question