Django inline formset error
问题 I'm trying to add an inline formset to a form. Here's the minimal code for reproducing the error: models.py class Festival(Model): desc = TextField(max_length=1000) class FestivalAddress(Model): festival = ForeignKey(Festival, related_name="addresses") name = CharField(max_length="50") urls.py urlpatterns = patterns('', url('^add/$', FestivalCreateView.as_view(), name='festival_add'), ) views.py class FestivalCreateView(CreateView): model = Festival form_class = FestivalForm #Add