Re: Best way to validate a Field at Model level

2014-01-23 Thread Mike Dewhirst
On 23/01/2014 10:23pm, parnigot wrote: Thanks Mike, Il giorno 23/gen/2014, alle ore 09:16, Mike Dewhirst mailto:mi...@dewhirst.com.au>> ha scritto: On 23/01/2014 7:03pm, parnigot wrote: Hi, In my models I’ve some FloatFields that must be > 0. I’m wondering what is the best way to check, at t

Re: Best way to validate a Field at Model level

2014-01-23 Thread parnigot
Thanks Mike, Il giorno 23/gen/2014, alle ore 09:16, Mike Dewhirst ha scritto: > On 23/01/2014 7:03pm, parnigot wrote: >> Hi, >> >> In my models I’ve some FloatFields that must be > 0. I’m wondering what >> is the best way to check, at the model level (not form), that the values >> for these Fi

Re: Best way to validate a Field at Model level

2014-01-23 Thread Mike Dewhirst
On 23/01/2014 7:03pm, parnigot wrote: Hi, In my models I’ve some FloatFields that must be > 0. I’m wondering what is the best way to check, at the model level (not form), that the values for these Fields are greater than 0? Browsing the documentation I’ve found the following three methods: *

Best way to validate a Field at Model level

2014-01-23 Thread parnigot
Hi, In my models I've some FloatFields that must be > 0. I'm wondering what is the best way to check, at the model level (not form), that the values for these Fields are greater than 0? Browsing the documentation I've found the following three methods: Add the MinValueValidator to each field.