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):
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,
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 )
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
4 matches
Mail list logo