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
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
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
3 matches
Mail list logo