Re: ModelFormSet and model deletion

2009-02-11 Thread Sergey Koval
id and "delete" checkbox is not checked. There's always at least one query per item. Probably it is check if model still exists in the database, but doubt that generated query is correct. I'm using SQLite as a database provider. Serge. On Wed, Feb 11, 2009 at 5:40 PM, Sergey

ModelFormSet and model deletion

2009-02-11 Thread Sergey Koval
Hello, I want to use ModelFormSet's model delete capability and here's problem I encountered: when I render formset manually (by looping through formset.forms), and if model was deleted, form is not getting deleted from formset.forms list. If I refresh whole page, deleted ModelForm disappears. Is

Re: m2m field and forms

2009-02-10 Thread Sergey Koval
On Tue, Feb 10, 2009 at 1:21 PM, Konstantin S wrote: > > Hello > > I have a form created from forms.ModelForm and in my model one of the > fields is m2m field. Now when form is displayed for that m2m filed I'd > like to have something that looks like checkbox where user can select > several alter

Re: Forms, fields and widgets

2009-02-10 Thread Sergey Koval
On Tue, Feb 10, 2009 at 10:14 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > Your constraints are a bit arbitrary and, in fact, overly-restrictive. > In particular the "without changing ModelForm" wish is just that: a > hope, not something that falls out of the design as "it looks lik

Re: Forms, fields and widgets

2009-02-09 Thread Sergey Koval
Hello, I read mentioned thread and still can't figure out how I can pass arbitrary values to widgets. OK, I'll rephrase question (it was "task" in the previous email): how I can make widget that takes two values out of the model without changing ModelForm behavior or doing separate query in the w