Skip to content

Conversation

@tomkins
Copy link
Contributor

@tomkins tomkins commented Apr 23, 2019

Closes #1155

The test case feels a bit weird - who would put a repr which renders the entire form? However if someone does - it's incredibly hard to someone to figure out why an IndexError is the result of it.

As mentioned in the issue - this only seems to happen on Postgres.

@tomkins tomkins changed the title Fix IndexError: list index out of range WIP: Fix IndexError: list index out of range Apr 23, 2019
@tomkins tomkins marked this pull request as ready for review April 23, 2019 14:09
Fixes problems where repr may render more templates
@tomkins tomkins changed the title WIP: Fix IndexError: list index out of range Fix IndexError: list index out of range Apr 23, 2019
@tomkins
Copy link
Contributor Author

tomkins commented Apr 23, 2019

Also, this might be an alternative fix to #1024 - but would need feedback from the people impacted in that issue (could be unrelated!).

@therefromhere
Copy link

therefromhere commented Apr 29, 2019

The issue was intermittent for me, but this does seem to fix it.

@matthiask
Copy link
Member

Looks good, thanks!

@matthiask matthiask merged commit d21a13c into django-commons:master May 5, 2019
@tomkins tomkins deleted the template-cache-indexerror branch May 5, 2019 13:08
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.

IndexError: list index out of range - when a repr renders templates

3 participants