Re: blank vs. exclude

2008-09-29 Thread johnny
yes, that's it! My exclude was not under class Meta, but along with the rest of the fields instead, my bad. thanks! On Sep 28, 11:06 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote: > John, > > Looking at your exclude syntax, that might be the problem. This would be the > correct code (assuming m

Re: blank vs. exclude

2008-09-28 Thread Gerard Petersen
John, Looking at your exclude syntax, that might be the problem. This would be the correct code (assuming modelform is used): class OrderForm(ModelForm): class Meta: model = Order exclude = ['number', 'state', 'state_since'] nb: The excluded fields have no null/blank/editab

blank vs. exclude

2008-09-28 Thread johnny
I have a question about the exclude property in ModelForm. When I have a Model and the ModelForm for it excludes a field from that Model, shouldn't the ModelForm validation excludes that field as well? It seems the only way to exclude the field from validation is to make it blank=True in the Mod