Skip to content

AI junk#933

Closed
santhreal wants to merge 1 commit into
pallets-eco:mainfrom
santhreal:fix/datetime-value-non-strftime-data
Closed

AI junk#933
santhreal wants to merge 1 commit into
pallets-eco:mainfrom
santhreal:fix/datetime-value-non-strftime-data

Conversation

@santhreal

Copy link
Copy Markdown

wtforms.fields.datetime.DateTimeField._value hits AttributeError when initial data=/obj string without strftime. This PR fixes the regression with a focused test covering the case. claimed

Initial data= or obj string values for date/time fields used to crash in
_value via a missing strftime. Render the string for the widget instead,
including DateTimeLocalField.
@davidism davidism closed this Jul 18, 2026
@davidism davidism changed the title fix: render non-date DateTimeField data without AttributeError AI junk Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants