Skip to content

Removed |safe from flat_attrs#57

Merged
smithdc1 merged 1 commit intomainfrom
flatattrs
Jun 8, 2021
Merged

Removed |safe from flat_attrs#57
smithdc1 merged 1 commit intomainfrom
flatattrs

Conversation

@smithdc1
Copy link
Copy Markdown
Member

@smithdc1 smithdc1 commented Jun 8, 2021

There's no behaviour change here. I think it's due to flat_attrs already being mark_safeed by the django function it wraps.

The result is passed through 'mark_safe' (by way of 'format_html_join').

https://github.com/django/django/blob/ca9872905559026af82000e46cde6f7dedc897b6/django/forms/utils.py#L27

@smithdc1 smithdc1 force-pushed the flatattrs branch 2 times, most recently from 50c53db to 51f8ef2 Compare June 8, 2021 18:30
@smithdc1 smithdc1 merged commit 004f73d into main Jun 8, 2021
@smithdc1 smithdc1 deleted the flatattrs branch June 8, 2021 19:29
@smithdc1 smithdc1 added this to the Next Release milestone Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant