Opened 8 years ago

Last modified 8 years ago

#26253 closed Bug

TemplateResponse and BasicTemplateResponse: error message causes TypeError — at Initial Version

Reported by: David Reitter Owned by: nobody
Component: Template system Version: 1.8
Severity: Release blocker Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

When TemplateResponse or BasicTemplateResponse are called, a TypeError is thrown.

This is because their init() creates a BackendTemplate giving only one argument to the constructor.

The resulting error is obviously confusing and obfuscates the warning.

The attached patch addresses the issue, although I am unsure whether one should assume, by default, that a DjangoTemplate was given.

Change History (1)

by David Reitter, 8 years ago

Attachment: response.patch added
Note: See TracTickets for help on using tickets.
Back to Top