"Key 'Content-Type' not found in Form"

2011-11-07 Thread bentzy
Hello, I have a page displaying a list of "Data" objects and I placed at the same page a "submit" button opening a form that updates the "Data" table at DB. Pretty simple. class Thing(models.Model): thing_id = models.BigIntegerField(primary_key=True) etc... class Data(models.Model):

Re: "Key 'Content-Type' not found in Form"

2011-11-07 Thread bentzy
Thanks Tom, Solved. The issue was not at view code, but at urls.py The urlpattern pointed to the model instead to the view. That's learning django the hard way... Cheers --bentzy On Nov 7, 2:53 pm, Tom Evans wrote: > On Mon, Nov 7, 2011 at 11:07 AM, bentzy wrote: > > Hello,

formset_factory: "extra" param doesn't work? (Django version 1.2.5)

2011-11-09 Thread bentzy
Hi, I'm trying to run the example at documentation about formsets(https:// docs.djangoproject.com/en/1.2/topics/forms/formsets/) It basically works, but the "extra" parameter doesn't: Following that example, I wrote: def fs(request): ArticleFormSet = formset_factory(ArticleForm, extra=5 )

Re: formset_factory: "extra" param doesn't work? (Django version 1.2.5)

2011-11-09 Thread bentzy
Solved. It's not recommended to return while in a loop :-X On Nov 9, 10:30 pm, bentzy wrote: > Hi, > > I'm trying to run the example at documentation about formsets(https:// > docs.djangoproject.com/en/1.2/topics/forms/formsets/) > > It basically works, but t