Quote:
Originally Posted by ownedbycats
Another question: After deleting an integer column (was converting it to a composite), I noticed that a template that checked the integer still worked, but treated everything as a '0'. Is this intentional?
|
Yes, assuming you are using raw_field() or $$ to fetch the value. It returns None for columns that don't exist. None is interpreted as zero in an arithmetic context. Using field() or $ will throw an error