[Answered ]-Django Unable to create model-based form: "str object not callable"

2👍

I think in your urls you should pass the form class ItemTemplateForm, not the string name:

from app.form import ItemTemplateForm

urlpatterns = patterns('inventory.views',
    url(r'^template/create/$', CreateView.as_view(form_class=ItemTemplateForm, template_name='generic_form.html'), name='template_create'),

Leave a comment