Inconsistency in form_class behavior, is this a Django ticket?

33 views
Skip to first unread message

Jopr

unread,
Feb 22, 2014, 5:50:35 AM2/22/14
to django...@googlegroups.com
I'm wondering whether the following should be a Django ticket and would like your opinion on it. 

When I forget to set a value for 'template_name' using the TemplateMixin it returns a useful exception:
"TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()'"

Though when I forget to set the form_class while using the FormView, it returns the following unhelpful exception:
"'NoneType' object is not callable"

The behavior doesn't seem consistent to me and a more helpful message would have saved me some trouble. Is it worth creating a ticket for this?

Camilo Torres

unread,
Feb 22, 2014, 11:37:47 AM2/22/14
to django...@googlegroups.com
Hello,

I think you can file a ticket on this, should be a quick fix candidate to be included in future releases. Please post here the ticket number after you do.

Regards,
Camilo. 
Reply all
Reply to author
Forward
0 new messages