Skip to content

Conversation

MoritzS
Copy link
Contributor

@MoritzS MoritzS commented Mar 10, 2015

@MoritzS MoritzS force-pushed the ticket_24469 branch 2 times, most recently from c57317e to 86aae69 Compare March 10, 2015 20:56
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem the output should be too lengthy, could we use assertHTMLEqual() instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's probably more concise.

@MoritzS MoritzS changed the title Fixed #24469 escape forms, fields and media correctly Fixed #24469 -- escape forms, fields and media correctly Mar 12, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since templates are identical, would it be worth creating them from a string in the test rather than loading them from the filesystem?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say it's besser to keep them as files, because right now they just happen to be identical.
When django someday supports a new Template backend that doesn't use {{ var }} syntax it's easier to separate the backends with different directories.

@timgraham timgraham changed the title Fixed #24469 -- escape forms, fields and media correctly Fixed #24469 -- Fixed escaping of forms, fields, and media in non-Django templates. Mar 13, 2015
@timgraham
Copy link
Member

buildbot, add to whitelist.

@timgraham
Copy link
Member

merged in 6bff343, thanks!

@timgraham timgraham closed this Mar 18, 2015
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.

2 participants