Re: Need help with a form instance

2011-05-19 Thread Oleg Lomaka
That is weird. I don't see serious errors in your view code. I would look at request.POST. May be you forgot to include formset.management_form into your template or something like this... ps: if you use django 1.3, there is a django.shortcuts.render method that is looks nicer then render_to_respo

Re: Need help with a form instance

2011-05-18 Thread piker
Thanks Oleg,that worked..its always the last thing that you try, isn't it? However.. I have it displaying beautifully now but it won't save.I can't pick whats wrong with this code that it won't save it.It just does nothing.Not even an error.If anyone can spot the mistake it would be much appreciate

Re: Need help with a form instance

2011-05-18 Thread Oleg Lomaka
You need ModelFormSet. By default, it creates forms for all models from given queryset. On Wed, May 18, 2011 at 12:20 PM, piker wrote: > Ok, I've managed to create a ModelForm instance that enables me to > input total

Need help with a form instance

2011-05-18 Thread piker
Ok, I've managed to create a ModelForm instance that enables me to input totally new items into the database, but i'm at a loss to work out how to display all the existing items in a model, on one page, edit them and submit them in one save(). Is that possible? I'd really appreciate some help here